记录详情

Wrong Answer

foo.cc: In function 'int FindSecondMax(int*, int)':
foo.cc:21:13: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized]
   21 |         int j;
      |             ^
foo.cc:23:30: warning: 'secmax' may be used uninitialized [-Wmaybe-uninitialized]
   23 |                 if (a[i]<max && a[i]>secmax)
      |                     ~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:14:13: note: 'secmax' was declared here
   14 |         int secmax;
      |             ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read 4211120, expect 0. 5ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Wrong Answer Read 5, expect 0. 4ms 412.0 KiB
#5 Wrong Answer Read 5, expect 0. 4ms 412.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与基础(单个的数组)
语言
C++
递交时间
2023-11-21 14:38:44
评测时间
2023-11-21 14:38:44
评测机
分数
40
总耗时
22ms
峰值内存
412.0 KiB