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; ~^~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1906 联合权值
- 语言
- C++
- 递交时间
- 2018-09-24 21:58:13
- 评测时间
- 2018-09-24 21:58:13
- 评测机
- 分数
- 40
- 总耗时
- 170ms
- 峰值内存
- 3.375 MiB