Wrong Answer

foo.cc: In function 'int main()':
foo.cc:5:21: warning: unused variable 'j' [-Wunused-variable]
    5 |         int l,r,cnt,j=1;
      |                     ^
foo.cc:18:15: warning: 'cnt' may be used uninitialized [-Wmaybe-uninitialized]
   18 |         cout<<cnt;
      |               ^~~
foo.cc:5:17: note: 'cnt' was declared here
    5 |         int l,r,cnt,j=1;
      |                 ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -273671843, expect 5. 2ms 284.0 KiB
#2 Wrong Answer Read 1809216844, expect 20. 1ms 284.0 KiB
#3 Wrong Answer Read -1626298595, expect 21. 2ms 284.0 KiB
#4 Wrong Answer Read -734107468, expect 300. 2ms 284.0 KiB
#5 Wrong Answer Read 663114540, expect 4. 2ms 284.0 KiB
#6 Wrong Answer Read -1892655825, expect 7. 2ms 300.0 KiB
#7 Wrong Answer Read -1014581822, expect 826. 3ms 284.0 KiB
#8 Wrong Answer Read 604903806, expect 3590. 2ms 328.0 KiB
#9 Wrong Answer Read -1167917864, expect 0. 2ms 284.0 KiB
#10 Wrong Answer Read -1538522744, expect 4000. 2ms 284.0 KiB

信息

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