记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:26:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(j==tmp)
     ^~
foo.cc:27:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     a[i]=0,j=0,k--,x=x+1;tmp=b[x];  //当数到目标时,计数才清零。!!!不然,即使内循环结束,j也不清零,累计到下次外循环。
                          ^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 8 1ms 384.0 KiB
#2 Wrong Answer 0a1 > 24 1ms 384.0 KiB
#3 Wrong Answer 0a1 > 713 4ms 384.0 KiB
#4 Wrong Answer 0a1 > 1330 4ms 384.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
2-2 约瑟夫问题
语言
C++
递交时间
2021-03-27 10:55:33
评测时间
2021-03-27 10:55:33
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB