Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2298 | 孙浚轩 | 财务管理 | C++ | Compile Error | 0 MS | 0 KB | 225 | 2023-12-23 17:06:50 |
#include<iostream> #include<iomanip> using namespace std; int main(){ double n,s=0; for(int i=1;i<=12;i++){ cin>>n; s+=n; } cout<<"¥"<<fixed<<setpresision(2)<<s/12; return 0; }
Main.cc: In function 'int main()': Main.cc:10:39: error: 'setpresision' was not declared in this scope cout<"¥"<<fixed<<setpresision(2)<<s/12; ^