记录详情

Runtime Error

foo.cc: In function 'int dfs(int, int)':
foo.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
   22 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |  scanf("%d%d", &m, &n);
      |  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:31:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |    scanf("%d", &a[i][j]);
      |    ~~~~~^~~~~~~~~~~~~~~~
foo.cc:40:5: warning: 'sy' may be used uninitialized in this function [-Wmaybe-uninitialized]
   40 |  dfs(sx,sy);
      |  ~~~^~~~~~~
foo.cc:40:5: warning: 'sx' may be used uninitialized in this function [-Wmaybe-uninitialized]
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB
#2 Runtime Error Segmentation fault 3ms 384.0 KiB
#3 Runtime Error Segmentation fault 5ms 384.0 KiB
#4 Runtime Error Segmentation fault 4ms 384.0 KiB
#5 Runtime Error Segmentation fault 3ms 384.0 KiB
#6 Runtime Error Segmentation fault 2ms 384.0 KiB
#7 Runtime Error Segmentation fault 3ms 384.0 KiB
#8 Runtime Error Segmentation fault 3ms 384.0 KiB
#9 Runtime Error Segmentation fault 3ms 384.0 KiB
#10 Runtime Error Segmentation fault 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1044 [蓝桥杯国赛 2021 中级组] 采摘园
语言
C++
递交时间
2022-05-07 17:21:17
评测时间
2022-05-07 17:21:17
评测机
分数
0
总耗时
38ms
峰值内存
384.0 KiB