| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74334 | 杨珂茹 | 财务管理 | C++ | Compile Error | 0 MS | 0 KB | 193 | 2024-05-25 09:30:56 |
#include <iostream> #include<iomanip> using namespace std; int main(){ double sun=0,a; for(int i=1;i<=12;i++){ cin>>a; sum+=a; } cout<<"¥"<<fixed<<setprecision(2)<<sum/12; }
Main.cc: In function 'int main()': Main.cc:8:3: error: 'sum' was not declared in this scope sum+=a; ^ Main.cc:10:39: error: 'sum' was not declared in this scope cout<<"¥"<