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)提供评测服务