Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 332.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 17ms 432.0 KiB
#5 Accepted 6ms 412.0 KiB
#6 Accepted 5ms 368.0 KiB
#7 Accepted 15ms 448.0 KiB
#8 Accepted 21ms 500.0 KiB
#9 Accepted 21ms 412.0 KiB
#10 Accepted 21ms 412.0 KiB

信息

递交者
类型
递交
题目
P1216 偷拍硕哥7
语言
C++
递交时间
2023-07-18 19:45:13
评测时间
2023-07-18 19:45:13
评测机
分数
100
总耗时
121ms
峰值内存
500.0 KiB