Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87438 黄睿杰 13求n的阶乘 C++ Compile Error 0 MS 0 KB 138 2024-08-10 11:10:55

Tests(0/0):


Code:

v#include<bits/stdc++.h> using namespace std; int main(){ int n,s=1; cin>>n; for(int i=1;i<=n;i++) s*=i; cout<<s; return 0; }


Run Info:

Main.cc:1:2: error: stray '#' in program
 v#include
  ^
Main.cc:1:1: error: 'v' does not name a type
 v#include
 ^
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
Main.cc:7:2: error: 'cout' was not declared in this scope
  cout<