/in/foo.cc: In function 'int main()':
/in/foo.cc:67:27: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld",&a[i][j]);
^
/in/foo.cc:32:26: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
order[k].x=x;order[k].y=y;
~~~~~~~~~~^~
/in/foo.cc:27:15: note: 'y' was declared here
int max=0,x,y,i,j;
^
/in/foo.cc:39:14: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
check[x][y]=false;
~~~~~~~~~~~^~~~~~
/in/foo.cc:27:13: note: 'x' was declared here
int max=0,x,y,i,j;
^