Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:11:17: warning: ‘imax’ may be used uninitialized [-Wmaybe-uninitialized]
   11 |                 if(imax<a[i])
      |                 ^~
foo.cc:6:15: note: ‘imax’ was declared here
    6 |         int n,imax,kcs;
      |               ^~~~
foo.cc:17:28: warning: ‘kcs’ may be used uninitialized [-Wmaybe-uninitialized]
   17 |                         kcs++;
      |                         ~~~^~
foo.cc:6:20: note: ‘kcs’ was declared here
    6 |         int n,imax,kcs;
      |                    ^~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 189975403, expect 3. 2ms 764.0 KiB
#2 Wrong Answer Read 9470618, expect 2. 3ms 536.0 KiB
#3 Wrong Answer Read 922067891, expect 11. 2ms 320.0 KiB
#4 Wrong Answer Read 1256757092, expect 12. 2ms 536.0 KiB
#5 Wrong Answer Read -1666213067, expect 13. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1026 C8 最大值的出现次数
语言
C++
递交时间
2024-05-14 21:11:12
评测时间
2024-05-14 21:11:12
评测机
分数
0
总耗时
13ms
峰值内存
764.0 KiB