| Problem | crypto |
|---|---|
| User | wilson9304 |
| Submission Time | 2025-12-11 14:46:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
crypto.cpp:13:1: error: expected ‘,’ or ‘;’ before ‘vector’
13 | vector<int> factorials(300005, -1);
| ^~~~~~
crypto.cpp: In function ‘int factorial(int)’:
crypto.cpp:25:7: error: ‘factorials’ was not declared in this scope; did you mean ‘factorial’?
25 | if (factorials[v] != -1)
| ^~~~~~~~~~
| factorial
crypto.cpp: In function ‘int main()’:
crypto.cpp:51:5: error: ‘factorials’ was not declared in this scope; did you mean ‘factorial’?
51 | factorials[1] = 1;
| ^~~~~~~~~~
| factorial
crypto.cpp:73:51: error: ‘MOD’ was not declared in this scope
73 | ans = (ans + 1LL * pos * factorial(n - i) % MOD) % MOD;
| ^~~