记录详情

Wrong Answer

foo.cc: In function 'int getMaxIndex(int*, int)':
foo.cc:22:9: warning: 'maxIndex' may be used uninitialized in this function [-Wmaybe-uninitialized]
   22 |  return maxIndex;
      |         ^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:42:32: warning: 'maxIndex' may be used uninitialized in this function [-Wmaybe-uninitialized]
   42 |  cout << getMaxIndex(bucket, 10) << endl;;
      |                                ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 5, expect 8. 2ms 384.0 KiB
#2 Wrong Answer Read 0, expect 2. 1ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 0, expect 5. 2ms 384.0 KiB
#5 Wrong Answer Read 0, expect 3. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
3-1 整数中的数字
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 18:22:11
评测时间
2022-07-28 18:22:11
评测机
分数
20
总耗时
12ms
峰值内存
384.0 KiB