记录详情

Runtime Error

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)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1326 迷宫
比赛
2022春季 荣誉练习赛1(2019蓝桥A组省赛重温)
语言
C++
递交时间
2022-03-19 21:09:36
评测时间
2022-03-19 21:09:36
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB