记录详情

Compile Error

foo.c: In function 'Insert':
foo.c:12:3: error: unknown type name 'e1se'
   12 |   e1se
      |   ^~~~
foo.c:13:3: error: variable-sized object may not be initialized
   13 |   a[i+1]=a[i];
      |   ^
foo.c:14:2: error: expected statement before ')' token
   14 |  )
      |  ^
foo.c:17:5: warning: 'main' is normally a non-static function [-Wmain]
   17 | int main()
      |     ^~~~
foo.c: In function 'main':
foo.c:21:2: warning: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   21 |  scant("%d",&n);
      |  ^~~~~
      |  scanf
foo.c:23:18: error: expected ']' before ')' token
   23 |   scanf("%d",&a[i);
      |                  ^
      |                  ]
foo.c:24:2: warning: implicit declaration of function 'ssanf'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
   24 |  ssanf("%d,.&X)∶
      |  ^~~~~
      |  sscanf
foo.c:24:8: warning: missing terminating " character
   24 |  ssanf("%d,.&X)∶
      |        ^
foo.c:24:8: error: missing terminating " character
   24 |  ssanf("%d,.&X)∶
      |        ^~~~~~~~~~~
foo.c:25:15: error: expected ')' before ';' token
   25 |  Insert(a,n,x);
      |               ^
      |               )
foo.c:28:11: error: expected ';' before '}' token
   28 |  return 0;
      |           ^
      |           ;
   29 | }
      | ~          
foo.c: In function 'Insert':
foo.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
foo.c:29: warning: control reaches end of non-void function [-Wreturn-type]
   29 | }
      | 
At top level:
foo.c:17:5: warning: 'main' defined but not used [-Wunused-function]
   17 | int main()
      |     ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-04-07 02:11:09
评测时间
2022-04-07 02:11:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes