记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:5:9: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
    5 | scanf("%f%f", &a, &b); // 读取两个整数
      |        ~^     ~~
      |         |     |
      |         |     double *
      |         float *
      |        %lf
/in/foo.c:5:11: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double *' [-Wformat=]
    5 | scanf("%f%f", &a, &b); // 读取两个整数
      |          ~^       ~~
      |           |       |
      |           float * double *
      |          %lf
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB
#2 Wrong Answer 1ms 320.0 KiB
#3 Wrong Answer 1ms 284.0 KiB
#4 Wrong Answer 1ms 404.0 KiB
#5 Wrong Answer 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1030 压岁钱
语言
C
递交时间
2025-03-30 16:44:05
评测时间
2025-03-30 16:44:05
评测机
分数
0
总耗时
6ms
峰值内存
404.0 KiB