Runtime Error
foo.cc: In function 'int main()': foo.cc:18:23: warning: iteration 10000 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | if(c[i]>big) | ~~~^ foo.cc:17:22: note: within this loop 17 | for(int i=1;i<=10002;i++) | ~^~~~~~~ foo.cc:20:15: warning: 'g' may be used uninitialized [-Wmaybe-uninitialized] 20 | cout<<g; | ^ foo.cc:7:43: note: 'g' was declared here 7 | int x,y;cin>>x>>y;int big=INT_MIN,g; | ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1807 奶牛的选举
- 比赛
- 2023.5.20中级班期中测试赛
- 语言
- C++
- 递交时间
- 2023-05-20 09:59:18
- 评测时间
- 2023-05-20 09:59:19
- 评测机
- 分数
- 0
- 总耗时
- 76ms
- 峰值内存
- 424.0 KiB