记录详情

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;
      |                     ^
# 状态 耗时 内存占用
#1 Accepted 3ms 764.0 KiB
#2 Accepted 3ms 760.0 KiB
#3 Accepted 3ms 320.0 KiB
#4 Accepted 2ms 496.0 KiB
#5 Accepted 2ms 320.0 KiB

信息

递交者
类型
递交
题目
A7-3 数组的极值下标函数
比赛
2024-3-22 信息教师练习赛(3)
语言
C++
递交时间
2024-03-22 12:54:34
评测时间
2024-03-22 12:54:34
评测机
分数
100
总耗时
14ms
峰值内存
764.0 KiB