Runtime Error

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:27:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'll' {aka 'long long int'} [-Wformat=]
   27 |         printf("%ld",s);
      |                 ~~^  ~
      |                   |  |
      |                   |  ll {aka long long int}
      |                   long int
      |                 %lld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 111, expect 21. 1ms 284.0 KiB
#2 Runtime Error Aborted 2ms 364.0 KiB

信息

递交者
类型
递交
题目
P1200 三相之力
比赛
2023.5.20中级班期中测试赛
语言
C++
递交时间
2023-05-20 09:59:22
评测时间
2023-05-20 09:59:22
评测机
分数
0
总耗时
4ms
峰值内存
364.0 KiB