Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:15: warning: 'cnt' may be used uninitialized [-Wmaybe-uninitialized]
   19 |         cout<<cnt;
      |               ^~~
foo.cc:5:24: note: 'cnt' was declared here
    5 |         int n,a[10005],cnt;cin>>n;
      |                        ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -1809156338, expect 6. 1ms 284.0 KiB
#2 Wrong Answer Read -1904517396, expect 1460. 2ms 284.0 KiB
#3 Wrong Answer Read -713928455, expect 9025. 2ms 284.0 KiB
#4 Wrong Answer Read -2117979847, expect 9025. 2ms 328.0 KiB
#5 Wrong Answer Read -929493953, expect 7303. 2ms 284.0 KiB
#6 Wrong Answer Read 758090426, expect 6866. 2ms 336.0 KiB
#7 Wrong Answer Read -374864446, expect 5530. 2ms 284.0 KiB
#8 Wrong Answer Read 900920934, expect 13358. 3ms 328.0 KiB
#9 Wrong Answer Read 2131613694, expect 23718. 3ms 284.0 KiB
#10 Wrong Answer Read 359759102, expect 159462. 6ms 352.0 KiB

信息

递交者
类型
递交
题目
P1811 排位
比赛
2023.5.20中级班期中测试赛
语言
C++
递交时间
2023-05-20 09:38:35
评测时间
2023-05-20 09:38:35
评测机
分数
0
总耗时
30ms
峰值内存
352.0 KiB