Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84787 王陈淼 15求n!>m C++ Compile Error 0 MS 0 KB 306 2024-07-16 14:33:48

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int i=0,m,n=1; cin >> m; while(n<m) { i++; n=n*i; } #include <iostream> using namespace std; int main() { int i=0,m,n=1; cin >> m; while(n<m) { i++; n=n*i; } cout<< i; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:15:1: error: a function-definition is not allowed here before '{' token
 {
 ^
Main.cc:25:1: error: expected '}' at end of input
 }
 ^