Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:19: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
    7 |         printf("%lf\n%.5lf\n%e\n%g",a,s,d,f);
      |                 ~~^                 ~
      |                   |                 |
      |                   double            int
      |                 %d
/in/foo.cc:7:26: warning: format '%lf' expects argument of type 'double', but argument 3 has type 'int' [-Wformat=]
    7 |         printf("%lf\n%.5lf\n%e\n%g",a,s,d,f);
      |                      ~~~~^            ~
      |                          |            |
      |                          double       int
      |                      %.5d
/in/foo.cc:7:30: warning: format '%e' expects argument of type 'double', but argument 4 has type 'int' [-Wformat=]
    7 |         printf("%lf\n%.5lf\n%e\n%g",a,s,d,f);
      |                             ~^          ~
      |                              |          |
      |                              double     int
      |                             %d
/in/foo.cc:7:34: warning: format '%g' expects argument of type 'double', but argument 5 has type 'int' [-Wformat=]
    7 |         printf("%lf\n%.5lf\n%e\n%g",a,s,d,f);
      |                                 ~^        ~
      |                                  |        |
      |                                  double   int
      |                                 %d
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 532.0 KiB
#2 Wrong Answer 2ms 504.0 KiB

信息

递交者
类型
递交
题目
P2297 1.1.7输出浮点数
语言
C++
递交时间
2025-12-21 20:20:52
评测时间
2025-12-21 20:20:52
评测机
分数
0
总耗时
3ms
峰值内存
532.0 KiB