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