foo.c: In function 'main':
foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
scanf("%d", a[10000]);
~^ ~~~~~~~~
foo.c:11:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 0; i < n && a[i]<k; i++);
^~~
foo.c:12:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
{
^
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
foo.c:9:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", a[10000]);
^~~~~~~~~~~~~~~~~~~~~
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^~~~~~~~~~~~~~
foo.c:9:2: warning: array subscript is above array bounds [-Warray-bounds]
scanf("%d", a[10000]);
^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务