QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#176588 | #6736. Alice and Bob | MaMengQi | Compile Error | / | / | C++20 | 303b | 2023-09-11 20:05:20 | 2023-09-11 20:05:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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; | ~~^~~