Problem flamethrower
User PerihelionfromAphelion
Submission Time 2026-02-16 16:36:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:16: error: ‘trees’ was not declared in this scope
8 | cin >> trees[i];
| ^~~~~
flamethrower.cpp:12:24: error: ‘trees’ was not declared in this scope
12 | current_sum += trees[i];
| ^~~~~
flamethrower.cpp:16:24: error: ‘trees’ was not declared in this scope
16 | current_sum += trees[i] - trees[i - K];
| ^~~~~