Problem flamethrower
User PyAce
Submission Time 2026-02-21 12:09:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int32_t main()’:
flamethrower.cpp:19:19: error: ‘k’ was not declared in this scope
19 | for (int m=0;m<k;i++){
| ^
flamethrower.cpp:20:18: error: ‘total’ was not declared in this scope
20 | totalcost += total[i+1]
| ^~~~~