Problem | exponentiate |
---|---|
User | Blender |
Submission Time | 2024-03-04 15:45:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘long long unsigned int power(unsigned int, unsigned int, unsigned int)’:
exponentiate.cpp:20:39: error: too few arguments to function ‘long long unsigned int power(unsigned int, unsigned int, unsigned int)’
20 | result = power( squaredAmodM, halfB );
| ^
exponentiate.cpp:9:5: note: declared here
9 | ull power( uint A, uint B, uint M )
| ^~~~~
exponentiate.cpp: In function ‘long long int fast_power(long long int, long long int)’:
exponentiate.cpp:31:38: error: ‘MOD’ was not declared in this scope
31 | result = (result*base) % MOD;
| ^~~
exponentiate.cpp:33:32: error: ‘MOD’ was not declared in this scope
33 | base = (base * base) % MOD;
| ^~~