foo.cc: In function 'void BFS(int, int, int)':
foo.cc:19:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
19 | if (arr[x + dir[i][0]][y + dir[i][1]] == 0 && dis[x + dir[i][0]][y + dir[i][1]] > z + 1);
| ^~
foo.cc:20:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
20 | {
| ^
foo.cc: In function 'void output()':
foo.cc:30:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i = 0; i < ve.size(); i++)
| ~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:74:17: warning: unused variable 'r' [-Wunused-variable]
74 | int r = arr[i][j];
| ^
foo.cc:77:14: warning: unused variable 'h' [-Wunused-variable]
77 | char h = getchar();
| ^
[Hydro](https://hydro.ac)提供评测服务