Let us consider the following example (of course this should be replaced by std::accumulate):
std::accumulate
#include auto sum(std::vector