foo.cc: In function 'int main()':
foo.cc:33:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
33 | for (int j = 1; j <= m; j++)
| ^~~
foo.cc:35:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
35 | for (int i = 1; i <= n; i++, cout << endl)
| ^~~
foo.cc:34:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%1d", &g[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务