/ 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 9ms 28.25 MiB
#2 Accepted 7ms 28.355 MiB
#3 Accepted 8ms 22.25 MiB
#4 Accepted 9ms 30.25 MiB
#5 Accepted 9ms 28.25 MiB
#6 Runtime Error 37ms 29.113 MiB
#7 Runtime Error 43ms 28.543 MiB
#8 Runtime Error 35ms 29.0 MiB
#9 Accepted 105ms 43.5 MiB
#10 Accepted 104ms 45.625 MiB
#11 Accepted 97ms 45.102 MiB
#12 Accepted 103ms 43.504 MiB
#13 Accepted 96ms 47.613 MiB
#14 Accepted 99ms 46.797 MiB
#15 Accepted 97ms 47.633 MiB
#16 Accepted 99ms 47.547 MiB
#17 Accepted 149ms 49.293 MiB
#18 Accepted 144ms 51.414 MiB
#19 Accepted 148ms 50.543 MiB
#20 Accepted 403ms 89.418 MiB

信息

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