foo.cc: In function 'int main()':
foo.cc:7:30: error: 'a' was not declared in this scope
7 | cin>>a[i][j];
| ^
foo.cc:10:17: error: 'a' was not declared in this scope
10 | a[i][7]=0;
| ^
foo.cc:11:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
11 | for(int j=1;j<=7;j++)
| ^~~
foo.cc:13:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for(int k=2;k<=6;k++){
| ^~~
foo.cc:19:31: error: 'a' was not declared in this scope
19 | cout<<a[i][j]<<' ';
| ^
foo.cc:18:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
18 | for(int j=1;j<=7;j++)
| ^~~
foo.cc:20:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
20 | cout<<endl;
| ^~~~
[Hydro](https://hydro.ac)提供评测服务