Problem exponentiate
User cjcube
Submission Time 2023-11-11 15:10:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:8:26: error: ‘c’ was not declared in this scope
8 | cin >> a[i] >> b[i] >> c[i];
| ^
exponentiate.cpp:11:20: error: expected ‘;’ before ‘<’ token
11 | for (int j = 0, j < b[i]-1, j++) {
| ^~
| ;
exponentiate.cpp:11:21: error: expected primary-expression before ‘<’ token
11 | for (int j = 0, j < b[i]-1, j++) {
| ^
exponentiate.cpp:11:34: error: expected ‘;’ before ‘)’ token
11 | for (int j = 0, j < b[i]-1, j++) {
| ^
| ;
exponentiate.cpp:12:29: error: expected ‘;’ before ‘}’ token
12 | a[i] = a[i] * a[i] % m[i]
| ^
| ;
13 | }
| ~