Problem exponentiate
User Joashhh
Submission Time 2023-04-22 15:39:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:12:32: error: invalid type argument of unary ‘*’ (have ‘long int’)
12 | unsigned long long ans = (a**b)%c;
| ^
exponentiate.cpp:13:6: error: structured binding declaration cannot have type ‘int’
13 | int[i] = ans;
| ^~~
exponentiate.cpp:13:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
exponentiate.cpp:13:8: error: redeclaration of ‘auto i’
13 | int[i] = ans;
| ^
exponentiate.cpp:7:10: note: ‘int i’ previously declared here
7 | for(int i=0; i<t; i++){
| ^
exponentiate.cpp:13:6: error: cannot decompose non-array non-class type ‘long long unsigned int’
13 | int[i] = ans;
| ^~~
exponentiate.cpp:15:17: error: ‘a’ was not declared in this scope
15 | for(int i=0; i<a; i++){
| ^