记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    5 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~
foo.c:7:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c: In function 'insert':
foo.c:14:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   14 |   scanf("%d",&x);
      |   ^~~~~~~~~~~~~~
foo.c:16:7: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   16 |  for(i=n;i>=0;i--)
      |      ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 256.0 KiB

信息

递交者
类型
自测
题目
A7-5 数组的有序插入函数
语言
C
递交时间
2021-12-23 16:59:56
评测时间
2021-12-23 16:59:56
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB