| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77223 | 只因你太美(Ikun 真爱粉) | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 169 | 2024-06-08 16:27:27 |
# include<iostream> using namespace std; int main(){ int a,b,m=0; cin>>a>>b; for(int i=a;i<=b;i++;){ m+=i; } cout<<m; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:25: error: expected ')' before ';' token
for(int i=a;i<=b;i++;){
^
Main.cc:7:26: error: expected primary-expression before ')' token
for(int i=a;i<=b;i++;){
^