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