Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101914 | 张运衡 | 计算平均数 | C++ | Compile Error | 0 MS | 0 KB | 241 | 2024-12-21 08:57:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[5]; char s=0; for(int i=0;i<5;i++){ s=a[i]; s+=a[i]; } printf("%.2lf\n"s=s\5); for(int i=0;i<5;i++){ if(a[i]>s){ cout<<a[i]<<" "; } } return 0; }
Main.cc:10:2: error: stray '\' in program printf("%.2lf\n"s=s\5); ^ Main.cc: In function 'int main()': Main.cc:10:9: error: unable to find string literal operator 'operator""s' with 'const char [7]', 'long unsigned int' arguments printf("%.2lf\n"s=s\5); ^