Problem | supermarket |
---|---|
User | samvar0907 |
Submission Time | 2024-01-06 00:54:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
supermarket.cpp: In function ‘long long int maxDeliciousness(const std::vector<long long int>&, const std::vector<long long int>&, long long int)’:
supermarket.cpp:20:30: error: ‘accumulate’ was not declared in this scope
20 | maxSum = max(maxSum, accumulate(deliciousness.begin() + left, deliciousness.begin() + right + 1, 0LL));
| ^~~~~~~~~~