| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83916 | 刘慕莀 | 阶乘的和 | C++ | Compile Error | 0 MS | 0 KB | 235 | 2024-07-15 10:01:40 |
#include<bits/stdc++.h> using namespace ; int b[int a]{ int s=1; for(int i=1;i<=a;i++){ s=s*i; } } int main(){ int n,sum=0; cin>>n; for(int i=1;i<=n;i++){ sum+=b(i); } cout<<sum; return 0; }
Main.cc:2:17: error: expected identifier before ';' token
using namespace ;
^
Main.cc:3:7: error: expected primary-expression before 'int'
int b[int a]{
^
Main.cc:3:7: error: expected ']' before 'int'