Problem flamethrower
User austenj
Submission Time 2026-07-17 13:57:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:18:5: error: ‘lon’ was not declared in this scope; did you mean ‘long’?
18 | lon long current_window_sum = 0;
| ^~~
| long
flamethrower.cpp:20:9: error: ‘current_window_sum’ was not declared in this scope
20 | current_window_sum += costs[i];
| ^~~~~~~~~~~~~~~~~~
flamethrower.cpp:23:33: error: ‘current_window_sum’ was not declared in this scope
23 | long long max_damage_cost = current_window_sum;
| ^~~~~~~~~~~~~~~~~~