Problem flamethrower
User CalebKow
Submission Time 2025-06-23 03:19:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:9:24: error: expected ‘;’ before ‘)’ token
9 | for(int i=1; i<=n, ++i){
| ^
| ;
flamethrower.cpp:15:2: error: ‘maximum_cost’ was not declared in this scope
15 | maximum_cost = 0
| ^~~~~~~~~~~~
flamethrower.cpp:16:15: error: ‘i’ was not declared in this scope
16 | for(int i=0; i<n-k; ++i){
| ^