/ Vijos /

记录详情

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;
           ^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 212.0 KiB
#2 Runtime Error 1ms 232.0 KiB
#3 Runtime Error 1ms 220.0 KiB
#4 Runtime Error 1ms 228.0 KiB
#5 Runtime Error 1ms 220.0 KiB
#6 Runtime Error 1ms 228.0 KiB
#7 Runtime Error 1ms 224.0 KiB
#8 Runtime Error 1ms 232.0 KiB
#9 Runtime Error 1ms 228.0 KiB
#10 Runtime Error 1ms 228.0 KiB

信息

递交者
类型
递交
题目
P1917 艾酱最喜欢的数字
语言
C++
递交时间
2019-07-26 11:30:12
评测时间
2019-07-26 11:30:12
评测机
分数
0
总耗时
12ms
峰值内存
232.0 KiB