foo.cc: In function 'int main()':
foo.cc:11:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
11 | scanf("%d%d",&n,&k);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
foo.cc:11:12: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
11 | scanf("%d%d",&n,&k);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
foo.cc:13:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
13 | scanf("%d",&a[i]);
| ~^ ~~~~~
| | |
| | ll* {aka long long int*}
| int*
| %lld
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务