void main()
{
vector<int> v;
v.push_back(1);
v.push_back(2);
v.push_back(4);
v.push_back(3);
v.push_back(6);
v.push_back(5);
cout << () <<endl;
vector<int>::iterator it;
for(it = ();it != ();)
{
if(*it % 2 == 0)
//(it++);
//it = (it);
(it);
else
it++;
}
cout << () <<endl;
for(it = ();it != ();it++)
{
cout << *it << " ";
}
// Perfect deletion of map
map<int, int> m;
m[1] = 1;
m[2] = 2;
m[3] = 4;
m[4] = 3;
m[5] = 5;
m[6] = 6;
cout <<"m size = "<<() <<endl;
map<int, int>::iterator it1;
for(it1 = (); it1!=();)
{
if(it1->second % 2 == 0)
(it1++);
else
it1++;
}
cout <<"2 should be deleted after deleting i3";
cout <<"m size = "<<() <<endl;
}