Compile Error

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

信息

递交者
类型
递交
题目
P1004 成绩表
语言
C++
递交时间
2023-11-25 20:31:59
评测时间
2023-11-25 20:31:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes