Accepted

foo.cc: In function 'int main()':
foo.cc:9:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
    9 |         scanf("%ld",&n);
      |                ~~^  ~~
      |                  |  |
      |                  |  ll* {aka long long int*}
      |                  long int*
      |                %lld
foo.cc:12:26: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
   12 |                 scanf("%ld",&k);
      |                        ~~^  ~~
      |                          |  |
      |                          |  ll* {aka long long int*}
      |                          long int*
      |                        %lld
foo.cc:25:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
   25 |         printf("%ld",s);
      |                 ~~^  ~
      |                   |  |
      |                   |  ll {aka long long int}
      |                   long int
      |                 %lld
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 10ms 512.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 5ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 7ms 512.0 KiB
#8 Accepted 4ms 512.0 KiB
#9 Accepted 4ms 512.0 KiB
#10 Accepted 4ms 512.0 KiB

信息

递交者
类型
递交
题目
P1343 合并果子
语言
C++
递交时间
2022-08-10 10:26:01
评测时间
2022-08-10 10:26:01
评测机
分数
100
总耗时
44ms
峰值内存
512.0 KiB