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