Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:10:18: warning: unused variable 'c' [-Wunused-variable] 10 | float c=(a/20-m)*k; | ^ /in/foo.cc:11:22: error: 'setprecision' was not declared in this scope 11 | cout<<fixed<<setprecision(2)<<c<<endl; | ^~~~~~~~~~~~ /in/foo.cc:11:39: error: 'c' was not declared in this scope 11 | cout<<fixed<<setprecision(2)<<c<<endl; | ^ /in/foo.cc: At global scope: /in/foo.cc:47:1: error: expected declaration before '}' token 47 | } | ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1085 xf1-8交电费
- 比赛
- 2025程序设计与竞赛作业赛第一场(整装出发)
- 语言
- C++
- 递交时间
- 2025-09-27 18:18:53
- 评测时间
- 2025-10-03 01:43:23
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes