Problem | flamethrower |
---|---|
User | loverin |
Submission Time | 2023-04-11 09:00:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:15: error: expected ‘;’ before ‘std’
8 | std::cin >> k
| ^
| ;
9 | std::vector<int> trees(n, 0);
| ~~~
flamethrower.cpp:13:15: error: ‘trees’ was not declared in this scope
13 | std::cin >> trees[i];
| ^~~~~
flamethrower.cpp:19:17: error: ‘trees’ was not declared in this scope
19 | tempTotal += trees[i+j];
| ^~~~~