什么情况,本地IDE一点问题木有啊
int main()
{
int x, y, z;
cin >> x;
cin >> y;
cin >> z;
int a, b, c;
vector<vector<int>>A, B, C;
vector<int> tmp1, tmp2, tmp3;
for (int i = 0; i < x; i++)
{
for (int j = 0; j < y; j++)
{
cin >> a;
tmp1.push_back(a);
}
A.push_back(tmp1);
tmp1.clear();
}
for (int i = 0; i < y; i++)
{
for (int j = 0; j < z; j++)
{
cin >> b;
tmp2.push_back(b);
}
B.push_back(tmp2);
tmp2.clear();
}
for (int i = 0; i < x; i++)
{
for (int j = 0; j < z; j++)
{
int sum = 0;
for (int m = 0; m < y; m++)
{
c = A[i][m] * B[m][j];
sum += c;
}
tmp3.push_back(sum);
}
C.push_back(tmp3);
tmp3.clear();
}
for (int i = 0; i < x; i++)
{
for (int j = 0; j < z - 1; j++)
cout << C[i][j] << ' ';
cout << C[i][z - 1];
cout << endl;
}
return 0;
}