Hi,
could anyone tell me how to use accumulate from STL. I get following error when I compile.
Bonuses.cc: In member function ‘std::vector<int, std::allocator<int> > Bonuses::getDivision(std::vector<int, std::allocator<int> >)’:
Bonuses.cc:16: error: ‘accumulate’ was not declared in this scope
Is there any other error in this code? Because i'm getting another error after modification...
Thanks..
Bonuses.cc: In member function ‘std::vector<int, std::allocator<int> > Bonuses::getDivision(std::vector<int, std::allocator<int> >)’:
Bonuses.cc:16: error: no matching function for call to ‘accumulate(std::vector<int, std::allocator<int> >&, size_t, int)’