Problem flamethrower
User MintTea
Submission Time 2023-07-07 15:10:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:16:32: error: ‘accumulate’ is not a member of ‘std’
16 | int currentCost = std::accumulate(treeCosts.begin() + i, treeCosts.begin() + i + K, 0);
| ^~~~~~~~~~