Accepted
foo.cc: In function 'int FindMax(int*, int)': foo.cc:5:13: warning: unused variable 'i' [-Wunused-variable] 5 | int i=0,max,r; | ^ foo.cc:13:16: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 13 | return r; | ^ foo.cc:5:21: note: 'r' was declared here 5 | int i=0,max,r; | ^ foo.cc: In function 'int main()': foo.cc:20:26: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 20 | cout<<FindMax(a,n)<<endl; | ^ foo.cc:5:21: note: 'r' was declared here 5 | int i=0,max,r; | ^
信息
- 递交者
- 类型
- 递交
- 题目
- A7-3 数组的极值下标函数
- 比赛
- 2024-3-22 信息教师练习赛(3)
- 语言
- C++
- 递交时间
- 2024-03-22 12:54:34
- 评测时间
- 2024-03-22 12:54:34
- 评测机
- 分数
- 100
- 总耗时
- 14ms
- 峰值内存
- 764.0 KiB