| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76392 | 张黄源 | 13求1╳2+2╳3+3╳4+...+10╳11的和 | C++ | Compile Error | 0 MS | 0 KB | 171 | 2024-06-02 14:08:42 |
#include<iostream> using namespace std; int main(){ int sum = 0,n; cout<<1 * 2 + 2 * 3 + 3*4 + 4*5 + 5*6 + 6*7 + 7*8 + 8*9 + 9*10 + 10*11; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:6: warning: unused variable 'sum' [-Wunused-variable]
int sum = 0,n;
^
Main.cc:6:14: warning: unused variable 'n' [-Wunused-variable]
int sum = 0,n;
^
Main.cc: At global scope:
Main.cc:9:2: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:10:1: error: expected declaration before '}' token
}
^