| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66658 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 阶乘的和 | C++ | Compile Error | 0 MS | 0 KB | 254 | 2024-03-09 17:35:44 |
#include <iostream> using namespace std; int anm(int a){ int s=1; for(int i=1;i<=c;i++){ s*=i; } return s; } int main(){ int n,u=0; cin>>n; for(int j;j<=n;j++){ u+=anm(j); } cout<<u; }
Main.cc: In function 'int anm(int)':
Main.cc:5:20: error: 'c' was not declared in this scope
for(int i=1;i<=c;i++){
^