Problem exponentiate
User dakingwawin
Submission Time 2024-12-23 09:17:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int expo(long long int, long long int, long long int)’:
exponentiate.cpp:8:32: error: too few arguments to function ‘long long int expo(long long int, long long int, long long int)’
8 | if(b%2== 1) return (expo(a,b-1)*a)%MOD;
| ^
exponentiate.cpp:6:5: note: declared here
6 | int expo(int a, int b,int MOD){
| ^~~~
exponentiate.cpp:9:23: error: too few arguments to function ‘long long int expo(long long int, long long int, long long int)’
9 | int save = expo(a,b/2);
| ^
exponentiate.cpp:6:5: note: declared here
6 | int expo(int a, int b,int MOD){
| ^~~~