Problem | GSS |
---|---|
User | JoshuaPyh |
Submission Time | 2024-01-25 09:04:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int min_total_price(int, std::vector<int>&)’:
GSS.cpp:10:29: error: ‘accumulate’ is not a member of ‘std’
10 | total_price += std::accumulate(prices.begin() + i * 4, prices.begin() + (i + 1) * 4, 0);
| ^~~~~~~~~~
GSS.cpp:15:29: error: ‘accumulate’ is not a member of ‘std’
15 | total_price += std::accumulate(prices.end() - remaining_bars, prices.end(), 0);
| ^~~~~~~~~~