记录详情

Wrong Answer

foo.cc: In function 'int FindiSecondMax(int*, int)':
foo.cc:28:1: warning: control reaches end of non-void function [-Wreturn-type]
   28 | }
      | ^
foo.cc:25:17: warning: 'secondmax' may be used uninitialized [-Wmaybe-uninitialized]
   25 |                 if(arr[i]==secondmax)
      |                 ^~
foo.cc:14:13: note: 'secondmax' was declared here
   14 |         int secondmax;
      |             ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 5. 5ms 412.0 KiB
#2 Wrong Answer Read 1, expect 4. 4ms 412.0 KiB
#3 Wrong Answer Read 2, expect 3. 5ms 516.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
A9-4 数组中第二大的数
语言
C++
递交时间
2023-12-07 12:25:30
评测时间
2023-12-07 12:25:30
评测机
分数
40
总耗时
23ms
峰值内存
516.0 KiB