Problem exponentiate
User chickennn
Submission Time 2026-04-23 19:07:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int power(long long int, long long int, long long int)’:
exponentiate.cpp:6:3: error: expected ‘,’ or ‘;’ before ‘for’
6 | for (long long x = 1; x < B; x++) {
| ^~~
exponentiate.cpp:6:25: error: ‘x’ was not declared in this scope
6 | for (long long x = 1; x < B; x++) {
| ^
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:25:35: error: too few arguments to function ‘long long int power(long long int, long long int, long long int)’
25 | cout << power(aA[i], aB[i]) % aM[i] << endl;
| ^
exponentiate.cpp:3:11: note: declared here
3 | long long power(long long A, long long B, long long M) {
| ^~~~~