foo.cc: In function 'int main()':
foo.cc:30:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
30 | scanf("%d %d %lld",&n,&m,&s);
| ~^ ~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:30:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
30 | scanf("%d %d %lld",&n,&m,&s);
| ~^ ~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:33:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
33 | scanf(" %d %d",&w[i],&v[i]);
| ~^ ~~~~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:33:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
33 | scanf(" %d %d",&w[i],&v[i]);
| ~^ ~~~~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:38:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
38 | scanf(" %d %d",&l[i],&r[i]);
| ~^ ~~~~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:38:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
38 | scanf(" %d %d",&l[i],&r[i]);
| ~^ ~~~~~
| | |
| int* LL* {aka long long int*}
| %lld
foo.cc:30:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d %d %lld",&n,&m,&s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:33:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf(" %d %d",&w[i],&v[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | scanf(" %d %d",&l[i],&r[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务