记录详情

Wrong Answer

/in/foo.c: In function 'Insert':
/in/foo.c:2:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.c: In function 'main':
/in/foo.c:10:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&x);
  ^~~~~
/in/foo.c:10:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:10:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:13:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   printf("%d",arr[i]);
   ^~~~~~
/in/foo.c:13:3: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:13:3: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:11:2: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  Insert(arr,n,x);
  ^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 272.0 KiB
#2 Wrong Answer 1ms 252.0 KiB
#3 Wrong Answer 1ms 248.0 KiB
#4 Wrong Answer 1ms 216.0 KiB
#5 Wrong Answer 1ms 212.0 KiB

信息

递交者
类型
递交
题目
A7-5 数组的有序插入函数
比赛
2023年新生赛(第三场)
语言
C
递交时间
2023-09-09 20:14:05
评测时间
2023-09-09 20:14:05
评测机
分数
0
总耗时
5ms
峰值内存
272.0 KiB