/ 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 5ms 3.0 MiB
#2 Accepted 4ms 2.75 MiB
#3 Accepted 5ms 2.625 MiB
#4 Accepted 4ms 3.375 MiB
#5 Wrong Answer 7ms 2.598 MiB
#6 Wrong Answer 4ms 2.613 MiB
#7 Wrong Answer 28ms 2.875 MiB
#8 Runtime Error 29ms 2.5 MiB
#9 Runtime Error 41ms 2.609 MiB
#10 Runtime Error 38ms 2.605 MiB

信息

递交者
类型
递交
题目
P1906 联合权值
语言
C++
递交时间
2018-09-24 21:58:13
评测时间
2018-09-24 21:58:13
评测机
分数
40
总耗时
170ms
峰值内存
3.375 MiB