/in/foo.cc: In function 'bool is_prime(ll)':
/in/foo.cc:20:16: error: 'pow_mod' was not declared in this scope
20 | ll x = pow_mod(a, d, n);
| ^~~~~~~
/in/foo.cc:24:17: error: 'mul_mod' was not declared in this scope
24 | x = mul_mod(x, x, n);
| ^~~~~~~
/in/foo.cc: In lambda function:
/in/foo.cc:45:38: error: 'mul_mod' was not declared in this scope
45 | auto f = [&](ll x) { return (mul_mod(x, x, n) + c) % n; };
| ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:72:15: error: too few arguments to function 'void factor(ll, std::map<long long int, int>&)'
72 | factor(n);
| ~~~~~~^~~
/in/foo.cc:58:6: note: declared here
58 | void factor(ll n, map<ll, int>& factors) {
| ^~~~~~