/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int Lca(int, int)':
/in/foo.cc:48:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (dep[u]<dep[v]) swap(u,v); int delta=(dep[u]-dep[v]); 
     ^~
/in/foo.cc:48:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (dep[u]<dep[v]) swap(u,v); int delta=(dep[u]-dep[v]); 
                                   ^~~
/in/foo.cc: In function 'void ins(int&, int, int, int, int)':
/in/foo.cc:57:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (rt==0) rt=++tn; lib[rt].v+=V;
     ^~
/in/foo.cc:57:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (rt==0) rt=++tn; lib[rt].v+=V;
                         ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:103:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (int i=1; i<n; i++) printf("%d ",Ans[i]); printf("%d\n",Ans[n]); 
     ^~~
/in/foo.cc:103:51: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (int i=1; i<n; i++) printf("%d ",Ans[i]); printf("%d\n",Ans[n]); 
                                                   ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 12ms 22.25 MiB
#2 Accepted 10ms 28.348 MiB
#3 Accepted 11ms 26.25 MiB
#4 Accepted 12ms 28.25 MiB
#5 Accepted 8ms 24.25 MiB
#6 Runtime Error 40ms 26.727 MiB
#7 Runtime Error 38ms 27.043 MiB
#8 Runtime Error 38ms 28.297 MiB
#9 Accepted 110ms 43.609 MiB
#10 Accepted 104ms 45.637 MiB
#11 Accepted 137ms 41.605 MiB
#12 Accepted 97ms 45.102 MiB
#13 Accepted 85ms 45.555 MiB
#14 Accepted 87ms 45.641 MiB
#15 Accepted 98ms 49.543 MiB
#16 Accepted 97ms 43.555 MiB
#17 Accepted 151ms 49.469 MiB
#18 Accepted 152ms 50.543 MiB
#19 Accepted 148ms 51.297 MiB
#20 Accepted 426ms 89.5 MiB

信息

递交者
类型
递交
题目
P2004 天天爱跑步
语言
C++
递交时间
2017-08-12 10:43:22
评测时间
2017-08-12 10:43:22
评测机
分数
85
总耗时
1870ms
峰值内存
89.5 MiB