| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147557 | 王顺煜 | 计算平均数 | C++ | Compile Error | 0 MS | 0 KB | 237 | 2026-02-06 10:18:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[5]; double n=0; for(int i=0;i<=4;i++){ cin>>a[i]; n+=a[i]; } n=n/5; printf("%.2f\n",n); for(int i=0;i<5;i++){ if(a[i]>f)cout<<a[i]<<" "; } }
Main.cc: In function 'int main()': Main.cc:14:10: error: 'f' was not declared in this scope if(a[i]>f)cout<