Problem exponentiate
User WHEE29alt
Submission Time 2024-12-23 11:26:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int mypow(long long int, long long int)’:
exponentiate.cpp:29:14: error: ‘m’ was not declared in this scope
29 | x %= m;// n %= m;
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:39:22: error: too many arguments to function ‘long long int mypow(long long int, long long int)’
39 | cout << mypow(a,b,m) << "\n";
| ^
exponentiate.cpp:17:5: note: declared here
17 | int mypow(int x, int n) {
| ^~~~~