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)提供评测服务
信息
- 递交者
- 类型
- 递交
- 比赛
- 2023 程序设计与基础(单个的数组)
- 语言
- C++
- 递交时间
- 2023-11-21 14:38:44
- 评测时间
- 2023-11-21 14:38:44
- 评测机
- 分数
- 40
- 总耗时
- 22ms
- 峰值内存
- 412.0 KiB