Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:20:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:24:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:28:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:32:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:36:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
/in/foo.cc:40:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
     printf("%.1f",b);
                    ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 312.0 KiB
#2 Wrong Answer 2ms 368.0 KiB
#3 Wrong Answer 2ms 488.0 KiB
#4 Wrong Answer 1ms 364.0 KiB
#5 Wrong Answer 1ms 336.0 KiB

信息

递交者
类型
递交
题目
P1027 出租车计价
语言
C++
递交时间
2023-12-17 17:18:00
评测时间
2023-12-17 17:18:00
评测机
分数
0
总耗时
10ms
峰值内存
488.0 KiB