记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15:8: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<cnt<<endl;
        ^~~
foo.cc:28:3: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]==max)
   ^~
foo.cc:20:6: note: 'max' was declared here
  int max,cnt;
      ^~~
foo.cc: In function 'int isearch(int*, int)':
foo.cc:33:9: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return cnt;
         ^~~
foo.cc:28:3: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(a[i]==max)
   ^~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 10. 3ms 384.0 KiB
#2 Wrong Answer Read 0, expect 8. 3ms 396.0 KiB

信息

递交者
类型
递交
题目
1-4 最大值的个数
比赛
2020苏青奥赛集训营(2021-4-3假期作业)
语言
C++
递交时间
2021-04-04 17:37:24
评测时间
2021-04-04 17:37:24
评测机
分数
0
总耗时
6ms
峰值内存
396.0 KiB