Problem | flamethrower |
---|---|
User | howdoicode |
Submission Time | 2025-02-17 16:30:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int deforestation(int, int, std::vector<int>&)’:
flamethrower.cpp:11:28: error: ‘K’ was not declared in this scope
11 | for(int j = 0; j < K; j++) {
| ^
flamethrower.cpp:12:13: error: ‘currentCost’ was not declared in this scope
12 | currentCost += costs[start + j];
| ^~~~~~~~~~~
flamethrower.cpp:17:12: error: ‘maxCost’ was not declared in this scope
17 | return maxCost;
| ^~~~~~~