| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151516 | 刘浩宇 | 13求n的阶乘 | C++ | Compile Error | 0 MS | 0 KB | 123 | 2026-04-13 16:37:27 |
using namespace std; int main(){ long long n; cin>>n; int a=1; for(int i=1;i<=n;i++){ a=a*i; } cout<<a; }
Main.cc: In function 'int main()': Main.cc:4:2: error: 'cin' was not declared in this scope cin>>n; ^ Main.cc:9:2: error: 'cout' was not declared in this scope cout<