#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
using namespace std;
int main(){
vector<int> v(10);
vector<int>::iterator it;
for (int i = 0; i < 10; i++){
v[i] = i;
}
copy(v.begin(),v.end(), ostream_iterator<int>(cout, " "));
cout << endl;
it = v.begin();
v.erase(it);
copy(v.begin(), v.end(), ostream_iterator<int>(cout, " "));
cout << endl;
it = v.begin()+2;
v.erase(it);
copy(v.begin(), v.end(), ostream_iterator<int>(cout, " "));
cout << endl;
it = v.begin();
v.erase(it, it + 2);
copy(v.begin(),v.end(), ostream_iterator<int>(cout, " "));
cout << endl;
return 0;
}