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 2ms 340.0 KiB
#2 Accepted 2ms 376.0 KiB
#3 Accepted 2ms 344.0 KiB
#4 Accepted 6ms 428.0 KiB
#5 Accepted 2ms 376.0 KiB
#6 Accepted 2ms 432.0 KiB
#7 Accepted 8ms 352.0 KiB
#8 Accepted 11ms 336.0 KiB
#9 Accepted 9ms 332.0 KiB
#10 Accepted 9ms 432.0 KiB

信息

递交者
类型
递交
题目
P1216 偷拍硕哥7
语言
C++
递交时间
2024-07-22 18:40:03
评测时间
2024-07-22 18:40:03
评测机
分数
100
总耗时
57ms
峰值内存
432.0 KiB