foo.c: In function 'main':
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&m,&n);
^~~~~~~~~~~~~~~~~~~
foo.c:9:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i][j]);
^~~~~~~~~~~~~~~~~~~~
foo.c:20:65: warning: array subscript is below array bounds [-Warray-bounds]
if(j==n-1&&a[i][j]>a[i][j-1]&&a[i][j]>a[i+1][j-1]&&a[i][j]>a[i-1][j])
~^~~~~
[Hydro](https://hydro.ac)提供评测服务