foo.c: In function 'insert':
foo.c:22:1: warning: control reaches end of non-void function [-Wreturn-type]
22 | }
| ^
foo.c: In function 'main':
foo.c:26:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
foo.c:30:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:32:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
32 | scanf("%d",&x);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务