记录详情

Accepted

foo.c: In function 'Insert':
foo.c:10:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   10 |         for (i = 0; i < n; i++)
      |         ^~~
foo.c:15:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   15 |                 for (i = n - 1; i >= j; i--)
      |                 ^~~
foo.c:17:18: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized]
   17 |                 a[j] = x;
      |                  ^
foo.c:9:15: note: 'j' was declared here
    9 |         int i,j;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 1ms 284.0 KiB

信息

递交者
类型
递交
题目
A7-5 数组的有序插入函数
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 14:45:38
评测时间
2023-11-21 14:45:38
评测机
分数
100
总耗时
10ms
峰值内存
284.0 KiB