| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129138 | 周民苡 | 14慈善募捐 | C++ | Compile Error | 0 MS | 0 KB | 229 | 2025-08-22 12:03:34 |
#include<bits/stdc++.h> #include<cstdio> using namespace std; int main() { double n,p=0,s; int i; for(i=1;i<=1000;i++){ cin>>n; s+=n; if(s>100000)break; } p=s/i; printf("%d %.2lf\n",i,p) return 0; }
Main.cc: In function 'int main()': Main.cc:15:2: error: expected ';' before 'return' return 0; ^