foo.c: In function 'Insert':
foo.c:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
9 | for (i = 0;i < n;i++)
| ^~~
foo.c:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
16 | a[i] = k;
| ^
foo.c: In function 'main':
foo.c:25:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
foo.c:27:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d", &a[i]);
| ^~~~~~~~~~~~~~~~~~
foo.c:28:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d", &k);
| ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务