| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123580 | 唐洪盛 | 13求7个数的平均数 | C++ | Compile Error | 0 MS | 0 KB | 182 | 2025-07-06 13:24:00 |
#include<bits/stdc++.h> using namespace std; int main() { int s=0; int x; for(int i=1;i<=7,i++){ cin>>x; s=s+x; } cout<<s/7; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:16: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=1;i<=7,i++){
^
Main.cc:6:23: error: expected ';' before ')' token
for(int i=1;i<=7,i++){
^