Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95592 | 谭思宸 | 04保留两位小数 | C++ | Compile Error | 0 MS | 0 KB | 205 | 2024-10-30 19:50:42 |
#include<iostream> #include<cstdio> using namespace std; int main() { double num = 3.14159; std::cout << std::fixed << std::setprecision(2) << num << std::endl; return 0; }
Main.cc: In function 'int main()': Main.cc:7:32: error: 'setprecision' is not a member of 'std' std::cout << std::fixed << std::setprecision(2) << num << std::endl; ^