I have been looking at this problem for a day now but I cannot seem to find the answer. I need to use and to add all of the elements of a vector.
So far I found http://www.cplusplus.com/reference/functional/plus/ Is it possible to instead of adding 2 vector add its elements together? I can't find anything else that even comes close to doing what I want to do.
By the way I am new to the language. I don't need the code but just a hint in the right direction.