Problem prime
User Kiameimon
Submission Time 2024-01-27 16:15:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘long long int modpow(long long int, long long int, long long int)’:
prime.cpp:9:20: error: ‘modmult’ was not declared in this scope
9 | if (e & 1) ans = modmult(ans, b, mod);
| ^~~~~~~
prime.cpp: In function ‘bool isPrime(long long int)’:
prime.cpp:20:8: error: ‘modmult’ was not declared in this scope
20 | p = modmult(p, p, n);
| ^~~~~~~