| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157731 | 张蔚林 | 阶乘的和 | C++ | Compile Error | 0 MS | 0 KB | 154 | 2026-08-16 15:13:54 |
#include<bits/stdc++.h> using namespace std; int sum(int n){ for(int i=1;i<=n;i++){ 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:8:1: error: 'cout' does not name a type cout<