Problem | exponentiate |
---|---|
User | qxlqx |
Submission Time | 2025-03-01 10:58:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘long long int pw_alt(long long int, long long int)’:
exponentiate.cpp:9:23: error: ‘m’ was not declared in this scope
9 | int temp=pw_alt((a*a%m,b/2)%m); //3^6 = 3^3 * 3^3
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:19:21: error: too many arguments to function ‘long long int pw_alt(long long int, long long int)’
19 | cout<<pw_alt(a,b,m)<<'\n';
| ^
exponentiate.cpp:6:5: note: declared here
6 | int pw_alt(int a,int b){
| ^~~~~~