vector <int> a; //first vector
vector <int> b; //second vector
vector <int>::iterator i; //iterator for first vector
vector <int>::iterator i1; //iterator for second vector
//reading of first vector
int temp;
while(cin>>temp)
{
a.push_back(temp);
}
i=a.begin();
while(i!=a.end())
{
cout<<*i<<" ";
i++;
}
//end of reading first vector
//reading of second vector
int temp2;
while(cin>>temp2)
{
b.push_back(temp2);
}
i1=b.begin();
while(i1!=b.end())
{
cout<<*i1<<" ";
i1++;
}
// end of second vector
i can read elements for 1st vector .however program doesnot go for second vector.