foo.cc: In function 'int main()':
foo.cc:40:46: error: expected ']' before '}' token
40 | cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
| ^
| ]
foo.cc:40:46: error: expected ';' before '}' token
40 | cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
| ^
| ;
foo.cc:40:47: error: expected primary-expression before '<<' token
40 | cout<<i+1<<" "<<index+1<<" "<<a[i][index}<<endl;
| ^~
foo.cc:5:14: warning: unused variable 'max' [-Wunused-variable]
5 | int k,i,j,n,max,min,index;
| ^~~
foo.cc: At global scope:
foo.cc:45:2: error: expected unqualified-id before 'if'
45 | if(num==0)
| ^~
foo.cc:49:2: error: expected unqualified-id before 'return'
49 | return 0;
| ^~~~~~
foo.cc:50:1: error: expected declaration before '}' token
50 | }
| ^
[Hydro](https://hydro.ac)提供评测服务