#include <iostream>
#include <vector>
using namespace std;
void print(vector<int> v)
{
cout<<"\n vector size is: "<<v.size()<<endl;
vector<int>::iterator p=v.begin();
}
int main()
{
vector<int> array1;
array1.push_back(1);
array1.push_back(6);
array1.push_back(6);
array1.push_back(3);
vector<int>::iterator itor=array1.begin();
while (itor!=array1.end())
{
if (6==*itor)
{
itor=array1.erase(itor);
--itor;
}
++itor;
}
print(array1);
return 0;
}