| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151522 | 周佳豪 | 13求n的阶乘 | C++ | Compile Error | 0 MS | 0 KB | 402 | 2026-04-13 16:46:51 |
#include<iostream> using namespace std; int main(){ s d ewc#include<iostream> using namespace std; int main(){ long long n,z; z=1; cin>>n; for(int i=1;i<=n;i++){ z=z*i; } cout<<z; } long long n,z; #include<iostream> using namespace std; int main(){ long long n,z; z=1; cin>>n; for(int i=1;i<=n;i++){ z=z*i; } cout<<z; } z=1; gtevt cout<<z; }
Main.cc:8:4: error: stray '#' in program
ewc#include
^
Main.cc:20:16: error: stray '#' in program
long long n,z; #include
^
Main.cc: In function 'int main()':
Main.cc:4:1: error: 's' was not declared in this scope
s
^
Main.cc:10:11: error: a function-definition is not allowed here before '{' token
int main(){
^
Main.cc:33:1: error: expected '}' at end of input
}
^