the program ignores second loop
<p>my program ignores second loop and I can't fill vector v2</p>

<pre><code>            vector&lt;int&gt; v1;
    vector&lt;int&gt; v2;
    int elem1,elem2;

    cout&lt;&lt;"Insert v1: ";
    while(cin&gt;&gt;elem1){
        v1.push_back(elem1);
    }

    cout&lt;&lt;"Insert v2: ";
    while(cin&gt;&gt;elem2){
        v2.push_back(elem2);
    } 
</code></pre>
