/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:33:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
       if (w[e[j].v]>max2)if (w[e[j].v]>=max1) max2=max1,max1=w[e[j].v]; else max2=w[e[j].v];
          ^
/in/foo.cc:23:38: warning: iteration 200004 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i=1;i<=200005;++i)head[i]=0,e[i].next=0;
                               ~~~~~~~^~
/in/foo.cc:23:18: note: within this loop
     for(int i=1;i<=200005;++i)head[i]=0,e[i].next=0;
                 ~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 3.0 MiB
#2 Accepted 4ms 2.504 MiB
#3 Wrong Answer 6ms 3.25 MiB
#4 Wrong Answer 4ms 2.5 MiB
#5 Wrong Answer 5ms 2.609 MiB
#6 Wrong Answer 4ms 2.75 MiB
#7 Wrong Answer 32ms 2.75 MiB
#8 Runtime Error 35ms 2.625 MiB
#9 Runtime Error 36ms 2.613 MiB
#10 Runtime Error 29ms 3.355 MiB

信息

递交者
类型
递交
题目
P1906 联合权值
语言
C++
递交时间
2018-09-24 21:54:27
评测时间
2018-09-24 21:54:27
评测机
分数
20
总耗时
164ms
峰值内存
3.355 MiB