记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:26:54: warning: 'f' may be used uninitialized in this function [-Wmaybe-uninitialized]
   26 |                 for (int i = n ; i > f; i--) arr[i ] = arr[i-1];
      |                                              ~~~~~~~~^~~~~~~~~~
foo.cc:17:21: note: 'f' was declared here
   17 |                 int f;
      |                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 11, expect 3. 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Wrong Answer Read 99, expect 88. 4ms 332.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1418 3 数组类+有序插入
比赛
2023春面向对象的程序设计方法实验(课程考试)
语言
C++
递交时间
2023-06-20 08:40:06
评测时间
2023-06-20 08:40:06
评测机
分数
60
总耗时
20ms
峰值内存
412.0 KiB