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