Problem exponentiate
User justin271828
Submission Time 2024-06-01 16:05:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:17:10: error: expected ‘;’ before ‘:’ token
17 | cin >> T:
| ^
| ;
exponentiate.cpp:23:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
23 | ans[i] = exp(A, B, M);
| ^~~
| abs
exponentiate.cpp:25:38: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
25 | for (int i = 0; i < T; i++) cout << ans[i];
| ^~~
| abs