记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:18: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
    5 |         scanf("%ld %ld",&x,&y);
      |                ~~^      ~~
      |                  |      |
      |                  |      long long int *
      |                  long int *
      |                %lld
foo.c:5:22: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
    5 |         scanf("%ld %ld",&x,&y);
      |                    ~~^     ~~
      |                      |     |
      |                      |     long long int *
      |                      long int *
      |                    %lld
foo.c:6:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
    6 |         printf("%ld",x+y);
      |                 ~~^  ~~~
      |                   |   |
      |                   |   long long int
      |                   long int
      |                 %lld
foo.c:7:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
    7 |         printf("%ld",x*y);
      |                 ~~^  ~~~
      |                   |   |
      |                   |   long long int
      |                   long int
      |                 %lld
foo.c:8:19: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
    8 |         printf("%ld",x%y);
      |                 ~~^  ~~~
      |                   |   |
      |                   |   long long int
      |                   long int
      |                 %lld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 10162, expect 10. 2ms 256.0 KiB
#2 Wrong Answer Read 10250, expect 10. 2ms 256.0 KiB
#3 Wrong Answer Read 321, expect 3. 3ms 256.0 KiB
#4 Wrong Answer Read 200015100015000505, expect 200015. 3ms 256.0 KiB
#5 Wrong Answer Read 1558563400510742..., expect 1558563. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
语言
C
递交时间
2022-10-05 23:23:48
评测时间
2022-10-05 23:23:48
评测机
分数
0
总耗时
12ms
峰值内存
256.0 KiB