记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:5:17: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'int *' [-Wformat=]
    5 |         scanf("%f%f%f",&a,&m,&k);
      |                ~^      ~~
      |                 |      |
      |                 |      int *
      |                 float *
      |                %d
foo.c:5:19: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'int *' [-Wformat=]
    5 |         scanf("%f%f%f",&a,&m,&k);
      |                  ~^       ~~
      |                   |       |
      |                   float * int *
      |                  %d
foo.c:5:21: warning: format '%f' expects argument of type 'float *', but argument 4 has type 'int *' [-Wformat=]
    5 |         scanf("%f%f%f",&a,&m,&k);
      |                    ~^        ~~
      |                     |        |
      |                     float *  int *
      |                    %d
foo.c:13:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   13 |                 printf("%.2f",(a/20-m)*k);
      |                         ~~~^  ~~~~~~~~~~
      |                            |          |
      |                            double     int
      |                         %.2d
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Wrong Answer Read 0.00, expect 1.14. 1ms 284.0 KiB
#3 Wrong Answer Read 0.00, expect 1643.30. 2ms 284.0 KiB
#4 Wrong Answer Read 0.00, expect 4.65. 1ms 284.0 KiB
#5 Accepted 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1085 xf1-8交电费
比赛
2023 程序设计与竞赛(作业1:见面赛)
语言
C
递交时间
2023-09-19 20:47:34
评测时间
2023-09-19 20:47:34
评测机
分数
40
总耗时
9ms
峰值内存
284.0 KiB