Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:14: error: ‘setprecision’ was not declared in this scope
    7 | cout<<fixed<<setprecision(6)<<3.141592653589793*R*R<<endl;
      |              ^~~~~~~~~~~~
foo.cc:1: note: ‘std::setprecision’ is defined in header ‘<iomanip>’; this is probably fixable by adding ‘#include <iomanip>’
    1 | #include<iostream>

信息

递交者
类型
递交
题目
P1648 赫尔曼
语言
C++
递交时间
2025-07-17 16:57:41
评测时间
2025-07-17 16:57:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes