Compile Error
foo.cc: In function ‘int main()’: foo.cc:13:25: error: expected ‘)’ before user-defined string literal 13 | printf("%.5lf",b" "c) | ~ ^~~~ | ) foo.cc:13:21: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=] 13 | printf("%.5lf",b" "c) | ~~~~^ ~ | | | | | int | double | %.5d foo.cc:13:30: error: expected ‘;’ before ‘return’ 13 | printf("%.5lf",b" "c) | ^ | ; 14 | return 0; | ~~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P2354 1.5.4:求整数的和与均值
- 语言
- C++
- 递交时间
- 2025-07-20 17:51:16
- 评测时间
- 2025-07-20 17:51:16
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes