Problem | flamethrower |
---|---|
User | aj |
Submission Time | 2024-09-02 09:11:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:20:28: error: expected ‘)’ before ‘;’ token
20 | for (int i=0;i<=N;i=i+1;){
| ~ ^
| )
flamethrower.cpp:20:29: error: expected primary-expression before ‘)’ token
20 | for (int i=0;i<=N;i=i+1;){
| ^
flamethrower.cpp:37:24: error: ‘treeCost’ was not declared in this scope; did you mean ‘tree_cost’?
37 | currentCost += treeCost[i] - treeCost[i - K];
| ^~~~~~~~
| tree_cost