Compile Error

foo.cc: In function 'int main()':
foo.cc:21:9: error: 'i' was not declared in this scope
       a[i][a[1][jj]]=k
         ^
foo.cc: At global scope:
foo.cc:31:2: error: expected unqualified-id before '.' token
 }.
  ^
foo.cc:61:15: error: redefinition of 'int a [201][201]'
 int a[201][201],n,t,jj;
               ^
foo.cc:3:5: note: 'int a [201][201]' previously declared here
 int a[201][201],n,t,jj;
     ^
foo.cc:61:17: error: redefinition of 'int n'
 int a[201][201],n,t,jj;
                 ^
foo.cc:3:17: note: 'int n' previously declared here
 int a[201][201],n,t,jj;
                 ^
foo.cc:61:19: error: redefinition of 'int t'
 int a[201][201],n,t,jj;
                   ^
foo.cc:3:19: note: 'int t' previously declared here
 int a[201][201],n,t,jj;
                   ^
foo.cc:61:21: error: redefinition of 'int jj'
 int a[201][201],n,t,jj;
                     ^~
foo.cc:3:21: note: 'int jj' previously declared here
 int a[201][201],n,t,jj;
                     ^~
foo.cc: In function 'int main()':
foo.cc:62:5: error: redefinition of 'int main()'
 int main(){
     ^~~~
foo.cc:4:5: note: 'int main()' previously defined here
 int main(){
     ^~~~
foo.cc:79:9: error: 'i' was not declared in this scope
       a[i][a[1][jj]]=k;
         ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1916 拉丁方阵(lading)
语言
C++
递交时间
2021-12-01 16:59:42
评测时间
2021-12-01 16:59:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes