foo.c:57:9: error: expected declaration specifiers or '...' before string constant
printf("%d\n", cnt);
^~~~~~
foo.c:57:17: error: unknown type name 'cnt'; did you mean 'int'?
printf("%d\n", cnt);
^~~
int
foo.c:59:2: error: expected identifier or '(' before 'return'
return 0;
^~~~~~
foo.c:60:1: error: expected identifier or '(' before '}' token
}
^
foo.c: In function 'main':
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &m, &n);
^~~~~~~~~~~~~~~~~~~~~~
foo.c:16:4: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i][j]);
^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务