Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:11:17: warning: ‘max’ may be used uninitialized [-Wmaybe-uninitialized]
   11 |                 if(max<a[i])
      |                 ^~
foo.cc:6:15: note: ‘max’ was declared here
    6 |         int n,max,cs;
      |               ^~~
foo.cc:17:27: warning: ‘cs’ may be used uninitialized [-Wmaybe-uninitialized]
   17 |                         cs++;
      |                         ~~^~
foo.cc:6:19: note: ‘cs’ was declared here
    6 |         int n,max,cs;
      |                   ^~
# 状态 耗时 内存占用
#1 Wrong Answer Read -810315117, expect 11. 2ms 320.0 KiB
#2 Wrong Answer Read 1800576314, expect 2. 2ms 536.0 KiB
#3 Wrong Answer Read 386512075, expect 3. 2ms 536.0 KiB
#4 Wrong Answer Read -2112151756, expect 12. 2ms 328.0 KiB
#5 Wrong Answer Read -171364027, expect 13. 2ms 536.0 KiB

信息

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