foo.cc: In function 'int main()':
foo.cc:11:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
11 | scanf("%ld",&t);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:17:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
17 | scanf("%ld%ld",&x,&y);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:17:21: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
17 | scanf("%ld%ld",&x,&y);
| ~~^ ~~
| | |
| | ll* {aka long long int*}
| long int*
| %lld
foo.cc:18:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
18 | printf("%ld\n",a[y]-a[x-1])
| ~~^ ~~~~~~~~~~~
| | |
| long int ll {aka long long int}
| %lld
foo.cc:18:36: error: expected ';' before '}' token
18 | printf("%ld\n",a[y]-a[x-1])
| ^
| ;
19 | }
| ~
[Hydro](https://hydro.ac)提供评测服务