Accepted

foo.cc: In function 'int main()':
foo.cc:20:9: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
   if(s[i]>max)
      ~~~^
foo.cc:17:11: note: within this loop
  for(i=0;i<10;i++)
          ~^~~
foo.cc:29:55: warning: array subscript is above array bounds [-Warray-bounds]
  sum+=s[0]+s[1]+s[2]+s[3]+s[4]+s[5]+s[6]+s[7]+s[8]+s[9];
                                                    ~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 344.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1090 阶段测验3(1)
语言
C++
递交时间
2021-07-30 15:35:34
评测时间
2021-07-30 15:35:34
评测机
分数
100
总耗时
9ms
峰值内存
384.0 KiB