Problem | flamethrower |
---|---|
User | shawn |
Submission Time | 2024-04-06 10:41:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:6:7: error: ‘let’ was not declared in this scope
6 | for (let i = 0; i < n; i++) cin >> a[i];
| ^~~
flamethrower.cpp:6:18: error: ‘i’ was not declared in this scope
6 | for (let i = 0; i < n; i++) cin >> a[i];
| ^
flamethrower.cpp:8:7: error: ‘let’ was not declared in this scope
8 | for (let ii = k - 1; i <= n - 1){
| ^~~
flamethrower.cpp:8:23: error: ‘i’ was not declared in this scope
8 | for (let ii = k - 1; i <= n - 1){
| ^
flamethrower.cpp:8:33: error: expected ‘;’ before ‘)’ token
8 | for (let ii = k - 1; i <= n - 1){
| ^
| ;