#include<iostream>
#include<vector>
#include<numeric>
#include<iterator>
using namespace std;
void main()
{
vector<int> v1,v2;
vector<int>::iterator n1,n2;
for(int i=1;i<=10;i++)
v1.push_back(i);
v2.insert(v2.begin(),v1.begin(),v1.end());
for(i=0;i<v2.size();i++)
cout<<v2[i]<<" ";
cout<<">"<<endl;
n1=v1.begin();
n2=v1.end();
cout<<"v1=<";
while(n1!=n2)
{
cout<<*n1<<" ";
n1++;
}
cout<<endl;
cout<<"the sum of v1 is:"<<accumulate(v1.begin(),v1.end(),0.0f)<<endl;
}