Problem helloworld
User Usu
Submission Time 2025-10-29 23:39:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘ll mod_pow(ll, ll)’:
helloworld.cpp:92:26: error: ‘mod_mul’ was not declared in this scope
92 | if (b & 1) res = mod_mul(res, a);
| ^~~~~~~
helloworld.cpp:93:13: error: ‘mod_mul’ was not declared in this scope
93 | a = mod_mul(a, a);
| ^~~~~~~
helloworld.cpp: In function ‘void precompute_factorials(int)’:
helloworld.cpp:119:32: error: ‘mod_mul’ was not declared in this scope
119 | rep(i, 1, n + 1) fact[i] = mod_mul(fact[i - 1], i);
| ^~~~~~~
helloworld.cpp:120:19: error: ‘mod_inv’ was not declared in this scope
120 | inv_fact[n] = mod_inv(fact[n]);
| ^~~~~~~
helloworld.cpp:121:52: error: ‘mod_mul’ was not declared in this scope
121 | for (int i = n - 1; i >= 0; i--) inv_fact[i] = mod_mul(inv_fact[i + 1], i + 1);
|