| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160413 | 赖泓宇 | 计算平均数 | C++ | Compile Error | 0 MS | 0 KB | 462 | 2026-09-18 19:12:44 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double a[6],s; for(int i=1;i<=5;i++){ cin>>a[i]; s+=a[i]; } printf("%.2lf",s/=5);cout<<endl; for(int j=1;j<=5;j++){ if(a[j]>s) cout<<a[j]<<" "; }
Main.cc: In function 'int main()':
Main.cc:17:5: error: expected '}' at end of input
}
^