Problem | prime |
---|---|
User | Kiameimon |
Submission Time | 2024-02-06 10:51:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘bool isPrime(long long int)’:
prime.cpp:16:11: error: ‘modpow’ was not declared in this scope
16 | int p = modpow(a % n, d, n), i = s;
| ^~~~~~
prime.cpp:17:40: error: ‘i’ was not declared in this scope
17 | while(p != 1 && p != n-1 && a % n && i--){
| ^