记录详情

Compile Error

foo.c: In function 'insert':
foo.c:11:33: error: expected expression before '<' token
   11 |                         if(a[i]=<x&&x=<a[i+1])
      |                                 ^
foo.c:15:33: error: 'temp1' undeclared (first use in this function)
   15 |                                 temp1=a[i-1];
      |                                 ^~~~~
foo.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
foo.c: In function 'main':
foo.c:35:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   35 |                 scanf("%d",&x)
      |                 ^~~~~
foo.c:35:29: error: 'x' undeclared (first use in this function)
   35 |                 scanf("%d",&x)
      |                             ^
foo.c:35:31: error: expected ';' before 'Search'
   35 |                 scanf("%d",&x)
      |                               ^
      |                               ;
   36 |         Search(a,n,x);
      |         ~~~~~~                 
foo.c:28:13: warning: unused variable 'number' [-Wunused-variable]
   28 |         int number=0;
      |             ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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