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

Compile Error

exponentiate.cpp: In function ‘int main()’:
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:14:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
14 | cout >> a[i] >> "\n";
| ~~~~ ^~ ~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
exponentiate.cpp:14:8: note: candidate: ‘operator>>(