Runtime Error

/in/foo.cc: In function 'int search(Node)':
/in/foo.cc:135:1: warning: control reaches end of non-void function [-Wreturn-type]
  135 | }
      | ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:141:18: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
  141 |         hashs[i] = hashs[i-1] * i;
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:140:18: note: within this loop
  140 |     for(int i=1;i<11;i++){
      |                 ~^~~
# 状态 耗时 内存占用
#1 Runtime Error 152ms 1.75 MiB
#2 Runtime Error 151ms 1.762 MiB
#3 Runtime Error 152ms 1.75 MiB
#4 Runtime Error 152ms 1.879 MiB
#5 Runtime Error 150ms 1.75 MiB
#6 Runtime Error 150ms 1.754 MiB
#7 Runtime Error 147ms 1.781 MiB
#8 Runtime Error 148ms 1.77 MiB
#9 Runtime Error 142ms 1.672 MiB
#10 Wrong Answer 2ms 980.0 KiB

信息

递交者
类型
递交
题目
P1188 八数码问题
语言
C++
递交时间
2025-03-28 21:02:48
评测时间
2025-03-28 21:02:48
评测机
分数
0
总耗时
1352ms
峰值内存
1.879 MiB