Wrong Answer

foo.cc: In function 'int main()':
foo.cc:20:7: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
    max++;
    ~~~^~
foo.cc:21:7: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
    sum+=a[i];
    ~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -100439692, expect 16. 2ms 384.0 KiB
#2 Wrong Answer Read -117524112, expect 0. 2ms 404.0 KiB
#3 Wrong Answer Read -2043172493, expect 11. 1ms 384.0 KiB
#4 Wrong Answer Read -1467967116, expect 16. 2ms 384.0 KiB
#5 Wrong Answer Read 705014131, expect 12. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1098 阶段测验3(2)
语言
C++
递交时间
2021-08-02 16:57:01
评测时间
2021-08-02 16:57:01
评测机
分数
0
总耗时
10ms
峰值内存
404.0 KiB