Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146871 余建成 15求n!>m C++ Compile Error 0 MS 0 KB 155 2026-02-01 10:41:55

Tests(0/0):


Code:

#include<iostream> using spasename std; int main() { int n,m,j=1; cin>>m; n=1; while(j<=m){ n++; j*=n; } cout<<n<<endl; retrum 0; }


Run Info:

Main.cc:2:7: error: expected nested-name-specifier before 'spasename'
 using spasename std;
       ^
Main.cc: In function 'int main()':
Main.cc:6:2: error: 'cin' was not declared in this scope
  cin>>m;
  ^
Main.cc:6:2: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
Main.cc:12:2: error: 'cout' was not declared in this scope
  cout<& __os)
     ^
Main.cc:13:2: error: 'retrum' was not declared in this scope
  retrum 0;
  ^