| Problem | exponentiate |
|---|---|
| User | benedyuan |
| Submission Time | 2025-12-19 23:06:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘long long int exponentiate(long long int, long long int)’:
exponentiate.cpp:9:21: error: ‘M’ was not declared in this scope
9 | ans = ans % M;
| ^
exponentiate.cpp:16:21: error: ‘M’ was not declared in this scope
16 | ans = ans % M;
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:27:37: error: too many arguments to function ‘long long int exponentiate(long long int, long long int)’
27 | cout << exponentiate(A, B, M) << "\n";
| ^
exponentiate.cpp:5:5: note: declared here
5 | int exponentiate(int A, int B){
| ^~~~~~~~~~~~