foo.cc: In function 'int main()':
foo.cc:13:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
13 | scanf("%ld",&t);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:20:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
20 | scanf("%ld%ld",&x,&y);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:20:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
20 | scanf("%ld%ld",&x,&y);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:21:27: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
21 | printf("%ld\n",a[y]-a[x-1]);
| ~~^ ~~~~~~~~~~~
| | |
| long int ll {aka long long int}
| %lld
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务