Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:23: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
         scanf("%ld",&t);
                       ^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
         scanf("%ld%ld",&x,&y);
                             ^
/in/foo.cc:18:29: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=]
/in/foo.cc:19:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
         printf("%ld\n",a[y]-a[x-1]);//a[i]表示第i个珠子时黑珠子的个数
                                   ^
# 状态 耗时 内存占用
#1 Accepted 1ms 344.0 KiB
#2 Accepted 1ms 380.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Accepted 6ms 348.0 KiB
#5 Accepted 2ms 376.0 KiB
#6 Accepted 2ms 376.0 KiB
#7 Accepted 5ms 432.0 KiB
#8 Accepted 7ms 424.0 KiB
#9 Accepted 7ms 328.0 KiB
#10 Accepted 7ms 360.0 KiB

信息

递交者
类型
递交
题目
P1216 偷拍硕哥7
语言
C++
递交时间
2024-07-26 15:32:43
评测时间
2024-07-26 15:32:43
评测机
分数
100
总耗时
45ms
峰值内存
432.0 KiB