Problem 4russians
User PlayVoltz
Submission Time 2023-09-01 23:56:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4russians.cpp: In function ‘int maximizeEffectiveness(int, int, std::vector<int>&, std::vector<int>&)’:
4russians.cpp:15:52: error: ‘accumulate’ was not declared in this scope
15 | dp[k - 1][j - 1] + (S[i - 1] * accumulate(C.begin() + j - 1, C.begin() + i, 0)) + dp[k - 1][j]);
| ^~~~~~~~~~