Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110579 | 金昱帆 | 累加器 | C++ | Compile Error | 0 MS | 0 KB | 117 | 2025-02-22 12:41:59 |
#include<bits/stdc++.h> using namespace std; int main() { int s = 0; for(int i=1;i<=100;i++){ s = s + i; } cout << s;
Main.cc:1:25: warning: extra tokens at end of #include directive #include using namespace std; int main() { int s = 0; for(int i=1;i<=100;i++){ s = s + i; } cout << s; ^ /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status