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)提供评测服务