foo.c: In function 'isprime':
foo.c:23:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i][j]>a[i][j+1] && a[i][j]>a[i+1][j] && a[i][j]>a[i-1][j] && a[i][j]>a[i][j-1] && a[i][j]>a[i-1][j+1] && a[i][j]>a[i-1][j-1] && a[i][j]>a[i+1][j-1] && a[i][j]>a[i+1][j+1])
^~
foo.c:25:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
return cnt;
^~~~~~
foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&m,&n);
^~~~~~~~~~~~~~~~~~~
foo.c:11:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i][j]);
^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务