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