Compile Error
foo.cc: In function ‘int main()’:
foo.cc:9:30: error: ‘setprecision’ was not declared in this scope
9 | cout<<fixed<<setprecision(1)<<dog;
| ^~~~~~~~~~~~
foo.cc:2:1: note: ‘std::setprecision’ is defined in header ‘<iomanip>’; did you forget to ‘#include <iomanip>’?
1 | #include<iostream>
+++ |+#include <iomanip>
2 | using namespace std;
foo.cc:11:32: error: expected ‘;’ before ‘}’ token
11 | cout<<"error"
| ^
| ;
12 | }
| ~
信息
- 递交者
- 类型
- 递交
- 题目
- P1717 狗的年龄
- 语言
- C++
- 递交时间
- 2024-06-28 18:17:24
- 评测时间
- 2024-06-28 18:17:24
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes