foo.cc: In function 'int main()':
foo.cc:9:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
9 | scanf("%ld",&n);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:12:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
12 | scanf("%ld",&k);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:27:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
27 | printf("%ld",s);
| ~~^ ~
| | |
| | ll {aka long long int}
| long int
| %lld
[Hydro](https://hydro.ac)提供评测服务