Problem exponentiate
User Johnnie
Submission Time 2023-06-19 10:26:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:4:19: error: ‘A’ was not declared in this scope
4 | long exponentiate(A, B, M)
| ^
exponentiate.cpp:4:22: error: ‘B’ was not declared in this scope
4 | long exponentiate(A, B, M)
| ^
exponentiate.cpp:4:25: error: ‘M’ was not declared in this scope
4 | long exponentiate(A, B, M)
| ^
exponentiate.cpp:4:26: error: expression list treated as compound expression in initializer [-fpermissive]
4 | long exponentiate(A, B, M)
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:24:31: error: ‘exponentiate’ cannot be used as a function
24 | cout << exponentiate(A, B, M) << endl;
| ^