Problem | exponentiate |
---|---|
User | Joashhh |
Submission Time | 2023-04-22 15:38:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:4:9: error: ‘a’ was not declared in this scope
4 | cin >> a;
| ^
exponentiate.cpp:7:15: error: ‘b’ was not declared in this scope
7 | cin >> a >> b >> c;
| ^
exponentiate.cpp:7:20: error: ‘c’ was not declared in this scope
7 | cin >> a >> b >> c;
| ^
exponentiate.cpp:9:6: error: structured binding declaration cannot have type ‘int’
9 | int[i] = ans;
| ^~~
exponentiate.cpp:9:6: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
exponentiate.cpp:9:8: error: redeclaration of ‘auto i’
9 | int[i] = ans;
| ^
exponentiate.cpp:6:10: note: ‘int i’ previously declared here
6 | for(int i=0; i<a; i++){
| ^
exponentiate.cpp:9:6: error: cannot decompose non-array non-class type ‘long