Problem exponentiate
User trzaeta
Submission Time 2025-06-18 17:45:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘const long long int power(int, int, int)’:
exponentiate.cpp:4:29: error: too few arguments to function ‘const long long int power(int, int, int)’
4 | return (a * power(a, b-1)) % m;
| ^
exponentiate.cpp:2:17: note: declared here
2 | const long long power(const int a, const int b, const int m){
| ^~~~~
exponentiate.cpp: In function ‘int main(int, char**)’:
exponentiate.cpp:13:32: error: too few arguments to function ‘const long long int power(int, int, int)’
13 | std::cout << power(a, b) % m << "\n";
| ^
exponentiate.cpp:2:17: note: declared here
2 | const long long power(const int a, const int b, const int m){
| ^~~~~