记录详情

Compile Error

foo.c: In function 'Insert':
foo.c:15:2: error: 'retirn' undeclared (first use in this function)
   15 |  retirn 0;
      |  ^~~~~~
foo.c:15:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c:15:8: error: expected ';' before numeric constant
   15 |  retirn 0;
      |        ^~
      |        ;
foo.c: In function 'main':
foo.c:24:12: error: expected ')' before ';' token
   24 |  scanf("%d";&x);
      |            ^
      |            )
foo.c:24:10: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
   24 |  scanf("%d";&x);
      |         ~^
      |          |
      |          int *
foo.c: In function 'Insert':
foo.c:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^
foo.c: In function 'main':
foo.c:21:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   21 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:23:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   23 |   scanf("%d",&a[i]);
      |   ^~~~~~~~~~~~~~~~~
foo.c:24:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   24 |  scanf("%d";&x);
      |  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-27 21:32:40
评测时间
2022-03-27 21:32:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes