Wrong int initialization in std::accumulate, now initialization with double (0.0)
int
std::accumulate
double