| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150762 | 余秋烨 | 13求n加到m的和 | C++ | Compile Error | 0 MS | 0 KB | 169 | 2026-03-30 17:22:02 |
#include<iostream> using namespace std; int main(){ int m,n; cin>>m>>n; int y for(int x=n;x<=m;x++){ int y; y=y+x} cout<<y; }
Main.cc: In function 'int main()':
Main.cc:7:5: error: expected initializer before 'for'
for(int x=n;x<=m;x++){
^
Main.cc:7:17: error: 'x' was not declared in this scope
for(int x=n;x<=m;x++){
^
Main.cc:10:11: error: 'y' was not declared in this scope
cout<