| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152414 | 孔声豪 | 18统计成绩 | C++ | Compile Error | 0 MS | 0 KB | 353 | 2026-04-26 10:38:03 |
#include <bits/stdc++.h> using namespace std; int main(){ int m,max=0,min=100,a[10001]={ }; double x,n; cin>>m; for(int i=0;i<m;i++){ cin>>a[i]; n+=a[i]; if(a[i]<min){ min=a[i]; } if(a[i]>max){ max=a[i]; } } x=m*1.0/n; cout<<n; printf ("%.2lf,"x ); cout<<' '<<max<<' '<<min; return 0; }
Main.cc: In function 'int main()':
Main.cc:19:13: error: unable to find string literal operator 'operator""x' with 'const char [7]', 'long unsigned int' arguments
printf ("%.2lf,"x );
^