Runtime Error
/in/foo.cc: In function 'int main()': /in/foo.cc:9:29: warning: iteration 98 invokes undefined behavior [-Waggressive-loop-optimizations] for(i=1;i<100;i++) {if(a[i]>a[i-1]) max=a[i];if(a[i]<a[i-1]) min=a[i];} ~~~^ /in/foo.cc:9:12: note: within this loop for(i=1;i<100;i++) {if(a[i]>a[i-1]) max=a[i];if(a[i]<a[i-1]) min=a[i];} ~^~~~ /in/foo.cc:11:11: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized] cout<<ans; ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1917 艾酱最喜欢的数字
- 语言
- C++
- 递交时间
- 2019-07-26 11:30:12
- 评测时间
- 2019-07-26 11:30:12
- 评测机
- 分数
- 0
- 总耗时
- 12ms
- 峰值内存
- 232.0 KiB