Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121158 龚睿晨 18统计成绩 C++ Compile Error 0 MS 0 KB 409 2025-06-07 08:40:46

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[101],n,z,zg,zd; double p; cin>>n; for(int i=1;i<=n;i++) { cin>>a[i]; z+=a[i]; } p=z*1.05 96 90 90 85 60/n; zg=0; zd=a[1]; for(int i=1;i<=n;i++) { if(a[i]<zd) { zd=a[i]; } if(a[i]>zg) { zg=a[i]; } } cout<<z<<" "; printf("%.2lf",p); cout<<" "<<zg<<" "<<zd; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:2: error: expected ';' before numeric constant
  96
  ^