Runtime Error

foo.cc: In function ‘int main()’:
foo.cc:36:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   36 |                         if(nx>=0&&nx<=100000&&!vis[nx])
      |                         ^~
foo.cc:37:56: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   37 |                                 q.push(farmer(nx,y+1));vis[nx]=1;
      |                                                        ^~~
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 760.0 KiB
#2 Runtime Error Segmentation fault 2ms 504.0 KiB
#3 Runtime Error Segmentation fault 2ms 504.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Accepted 2ms 504.0 KiB
#6 Accepted 2ms 504.0 KiB
#7 Accepted 2ms 508.0 KiB
#8 Accepted 2ms 504.0 KiB
#9 Runtime Error Segmentation fault 2ms 504.0 KiB
#10 Runtime Error Segmentation fault 2ms 760.0 KiB
#11 Runtime Error Segmentation fault 2ms 508.0 KiB
#12 Runtime Error Segmentation fault 2ms 788.0 KiB
#13 Accepted 2ms 504.0 KiB

信息

递交者
类型
递交
题目
P1018 抓牛(catchcow)
语言
C++
递交时间
2025-07-22 13:29:13
评测时间
2025-07-22 13:29:13
评测机
分数
42
总耗时
32ms
峰值内存
788.0 KiB