记录详情

Wrong Answer

foo.c: In function 'FindSecondMax':
foo.c:4:25: warning: unused variable 'j' [-Wunused-variable]
    4 |         int max1,max2,i,j,cnt=0,sum=2,p;
      |                         ^
foo.c:45:9: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized]
   45 |         printf("%d ",p);
      |         ^~~~~~~~~~~~~~~
foo.c:4:39: note: 'p' was declared here
    4 |         int max1,max2,i,j,cnt=0,sum=2,p;
      |                                       ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 44026560, expect 1. 1ms 288.0 KiB
#2 Wrong Answer Read 1436375744, expect 0. 1ms 284.0 KiB
#3 Wrong Answer Read 4, expect 3. 2ms 284.0 KiB
#4 Wrong Answer Read -805852480, expect 0. 2ms 284.0 KiB
#5 Wrong Answer Read -670549312, expect 2. 1ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 15:05:43
评测时间
2023-11-21 15:05:43
评测机
分数
0
总耗时
9ms
峰值内存
288.0 KiB