Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80554 胡盛哲 18高于平均分的学生数量 C++ Compile Error 0 MS 0 KB 392 2024-07-11 15:09:22

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int z[101],n,a=0,max=0,zx=10001; double ty; cin>>n; for(int i=1; i<=n; i++) { cin>>z[i]; a+=z[i]; } cout<<a<<' '; for(int i=1; i<=n; i++) { if(max<z[i]) { max=z[i]; } if(zx>z[i]){ zx=z[i]; ty=a*1.0/n; { printf("%.2lf",ty); cout<<' '<<max<<' '<<zx<<' '; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:23:2: error: expected '}' at end of input
  }
  ^
Main.cc:23:2: error: expected '}' at end of input
Main.cc:23:2: error: expected '}' at end of input