记录详情

Wrong Answer

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 Wrong Answer Read 33, expect 21. 2ms 284.0 KiB
#2 Wrong Answer Read 53272, expect 33672. 2ms 328.0 KiB

信息

递交者
类型
递交
题目
P1188 三相之力
语言
C++
递交时间
2023-05-20 09:47:42
评测时间
2023-05-20 09:47:42
评测机
分数
0
总耗时
5ms
峰值内存
328.0 KiB