QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#176588#6736. Alice and BobMaMengQiCompile Error//C++20303b2023-09-11 20:05:202023-09-11 20:05:20

Details

answer.code:6:19: error: ‘long long int dp(int)’ redeclared as different kind of entity
    6 | long long dp(int n) {
      |                   ^
answer.code:4:11: note: previous declaration ‘long long int dp [1000001]’
    4 | long long dp[1000001];
      |           ^~
answer.code: In function ‘long long int dp(int)’:
answer.code:15:13: error: ‘dp’ cannot be used as a function
   15 |   dp[n] = dp(n - 1) * (n - 1);
      |           ~~^~~~~~~
answer.code: In function ‘int main()’:
answer.code:23:13: error: ‘dp’ cannot be used as a function
   23 |   cout << dp(n) % 998244353 << endl;
      |           ~~^~~