#include <iostream>
#include <vector>
#include <numeric>
using std::cout;
using std::endl;
using std::vector;
int main()
{
vector<int> vec{ 1, 2, 3, 4, 5 };
int total = accumulate(vec.begin(), vec.end(), 0);
cout << total << endl;
return 0;
}
/*
run:
15
*/