foo.cc: In function 'int main()':
foo.cc:5:12: error: expected ']' before ',' token
5 | int a[5,500]={0};
| ^
| ]
foo.cc:5:13: error: expected unqualified-id before numeric constant
5 | int a[5,500]={0};
| ^~~
foo.cc:7:2: error: 'cin' was not declared in this scope
7 | cin>>m>>n;
| ^~~
foo.cc:11:4: error: 'cout' was not declared in this scope
11 | cout>>a[i,j];
| ^~~~
foo.cc:11:10: error: 'a' was not declared in this scope
11 | cout>>a[i,j];
| ^
foo.cc:11:12: warning: left operand of comma operator has no effect [-Wunused-value]
11 | cout>>a[i,j];
| ^
foo.cc:16:7: error: 'a' was not declared in this scope
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ^
foo.cc:16:10: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:23: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:16:38: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:51: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:16:66: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:77: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:94: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:105: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:122: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:135: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:16:152: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:165: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:16:182: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:195: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:16:212: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~^~
foo.cc:16:225: warning: left operand of comma operator has no effect [-Wunused-value]
16 | if(a[2+i,2+j]>a[2+i-1,2+j] and a[2+i,2+j]>a[2+i+1,2+j] and a[2+i,2+j]>a[2+i,2+j-1] and a[2+i,2+j]>a[2+i,2+j+1] and a[2+i,2+j]>a[2+i-1,2+j-1] and a[2+i,2+j]>a[2+i+1,2+j+1] and a[2+i,2+j]>a[2+i+1,2+j-1] and a[2+i,2+j]>a[2+i-1,2+j+1]){
| ~~~^~
foo.cc:22:2: error: 'cout' was not declared in this scope
22 | cout<<b;
| ^~~~