Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:15: warning: 'sum' may be used uninitialized [-Wmaybe-uninitialized]
   17 |         cout<<sum;
      |               ^~~
foo.cc:5:17: note: 'sum' was declared here
    5 |         int l,r,sum;
      |                 ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 675286029, expect 5. 2ms 284.0 KiB
#2 Wrong Answer Read 585518828, expect 20. 2ms 284.0 KiB
#3 Wrong Answer Read -618575203, expect 21. 2ms 328.0 KiB
#4 Wrong Answer Read -3802748, expect 300. 2ms 284.0 KiB
#5 Wrong Answer Read -45575700, expect 4. 2ms 284.0 KiB
#6 Wrong Answer Read 1779840799, expect 7. 2ms 284.0 KiB
#7 Wrong Answer Read 1702535426, expect 826. 2ms 284.0 KiB
#8 Wrong Answer Read 2078547854, expect 3590. 2ms 284.0 KiB
#9 Wrong Answer Read -2099513992, expect 0. 2ms 284.0 KiB
#10 Wrong Answer Read -406564648, expect 4000. 2ms 328.0 KiB

信息

递交者
类型
递交
题目
P1464 数字统计
比赛
2023.5.20中级班期中测试赛
语言
C++
递交时间
2023-05-20 08:05:46
评测时间
2023-05-20 08:05:46
评测机
分数
0
总耗时
23ms
峰值内存
328.0 KiB