Problem factorial
User myrcella
Submission Time 2025-09-14 00:12:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorial.cpp:5:11: error: redefinition of ‘const int MAXN’
5 | const int MAXN = 1e9 + 7;
| ^~~~
factorial.cpp:4:11: note: ‘const int MAXN’ previously defined here
4 | const int MAXN = 1e5 + 10;
| ^~~~
factorial.cpp: In function ‘int main()’:
factorial.cpp:11:68: error: ‘MOD’ was not declared in this scope
11 | for (int i = 1; i < MAXN; i++) fact[i] = 1LL * fact[i - 1] * i % MOD;
| ^~~