| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132370 | 孙羽尚 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 165 | 2025-10-08 09:35:05 |
#include<iostream> using namespace std; int main(){ int n,s=0,i=1; while i==n{ s=s+i; i=i+1; { cout<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:11: error: expected '(' before 'i'
while i==n{
^
Main.cc:5:15: error: expected ')' before '{' token
while i==n{
^
Main.cc:12:1: error: expected '}' at end of input
}
^
Main.cc:12:1: error: expected '}' at end of input