| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149126 | 马俊潇 | 13求n的阶乘 | C++ | Compile Error | 0 MS | 0 KB | 155 | 2026-03-07 15:02:41 |
#include<iostream> using namespace std; int main(){ longlong n,a=1; cin>>n; for(int i=1;i<=n;i++){ a=a*i;} cout<<a; return 0;}
Main.cc: In function 'int main()':
Main.cc:4:2: error: 'longlong' was not declared in this scope
longlong n,a=1;
^
Main.cc:5:10: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:7:4: error: 'a' was not declared in this scope
a=a*i;}
^
Main.cc:8:11: error: 'a' was not declared in this scope
cout<