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