记录详情

Compile Error

foo.c: In function 'output':
foo.c:13:15: error: expected ';' before '}' token
   13 |   printf("\n")
      |               ^
      |               ;
   14 |  }
      |  ~             
foo.c: In function 'main':
foo.c:27:3: warning: implicit declaration of function 'fun' [-Wimplicit-function-declaration]
   27 |   fun(a,n);
      |   ^~~
foo.c:29:5: warning: implicit declaration of function 'search' [-Wimplicit-function-declaration]
   29 |   m=search(a,n,x);
      |     ^~~~~~
foo.c:25:21: warning: variable 'm' set but not used [-Wunused-but-set-variable]
   25 |   int i,n,a[9999],x,m;
      |                     ^
foo.c:25:7: warning: unused variable 'i' [-Wunused-variable]
   25 |   int i,n,a[9999],x,m;
      |       ^
foo.c: In function 'input':
foo.c:4:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    4 |  int n; scanf("%d",&n);
      |         ^~~~~~~~~~~~~~
foo.c:6:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    6 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c: In function 'main':
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   26 |   scanf("%d",&n);
      |   ^~~~~~~~~~~~~~
foo.c:28:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   28 |   scanf("%d",&x);
      |   ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A7-5 数组的有序插入函数
语言
C
递交时间
2022-03-29 11:32:44
评测时间
2022-03-29 11:32:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes