0
Q:

sum of elements in c++ stl

accumulate(a.begin(), a.end(), 0)
4

New to Communities?

Join the community