Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103709 石晋骁 n的阶乘 C++ Compile Error 0 MS 0 KB 198 2024-12-29 14:54:13

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; long long jc(int n){ if(n == 1){ return 1; }else{ return ps(n+1)*2; } } int main(){ int n; cin >> n; cout << jc(n); return 0; }


Run Info:

Main.cc: In function 'long long int jc(int)':
Main.cc:7:16: error: 'ps' was not declared in this scope
   return ps(n+1)*2;
                ^