| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157732 | 张蔚林 | 阶乘的和 | C++ | Compile Error | 0 MS | 0 KB | 170 | 2026-08-16 15:19:23 |
#include<bits/stdc++.h> using namespace std; int sum(int n){ for(int i=1;i<=n;i++){ i++; } } int f; f(i*=i); cout<<i; int main(){ return 0; }
Main.cc: In function 'int sum(int)':
Main.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Main.cc: At global scope:
Main.cc:9:2: error: expected constructor, destructor, or type conversion before '(' token
f(i*=i);
^
Main.cc:10:1: error: 'cout' does not name a type
cout<