Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: 'm' was not declared in this scope; did you mean 'tm'?
    5 |   int a[m][n],b[n][p],c[i][j];
      |         ^
      |         tm
foo.cc:5:12: error: 'n' was not declared in this scope
    5 |   int a[m][n],b[n][p],c[i][j];
      |            ^
foo.cc:5:20: error: 'p' was not declared in this scope
    5 |   int a[m][n],b[n][p],c[i][j];
      |                    ^
foo.cc:5:25: error: 'i' was not declared in this scope
    5 |   int a[m][n],b[n][p],c[i][j];
      |                         ^
foo.cc:5:28: error: 'j' was not declared in this scope
    5 |   int a[m][n],b[n][p],c[i][j];
      |                            ^
foo.cc:9:9: error: 'a' was not declared in this scope
    9 |    cin>>a[m][n];
      |         ^
foo.cc:12:9: error: 'b' was not declared in this scope
   12 |    cin>>b[n][p];
      |         ^
foo.cc:17:5: error: 'c' was not declared in this scope
   17 |     c[i][j]=0;
      |     ^
foo.cc:18:9: error: 'x' was not declared in this scope
   18 |     for(x=0;x<n;++x)
      |         ^
foo.cc:19:15: error: 'a' was not declared in this scope
   19 |      c[i][j]+=a[m][n]*b[n][p];
      |               ^
foo.cc:19:23: error: 'b' was not declared in this scope
   19 |      c[i][j]+=a[m][n]*b[n][p];
      |                       ^
foo.cc:26:8: error: 'c' was not declared in this scope
   26 |  cout<<c[i][j]<<" ";
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1095 6-2 矩阵乘法
比赛
2022.5复学庆祝赛(初二)
语言
C++
递交时间
2022-05-14 12:37:54
评测时间
2022-05-14 12:37:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes