title: Fail to insert the element of the set to the vector in c++
body: <p>Given a set of integers:</p>
  <pre><code>set&lt;int&gt; setA = {1,2,3,4,5};
  </code></pre>
  <p>Now I want to insert the integer to a vector of integers under a certain condition:</p>
  <pre><code>vector&lt;int&gt; vectorB;
  for (set&lt;int&gt;::iterator it = setA.begin(); it != setB.end(); it++){
  
    if (*it % 2 == 0){
    }else{
      vectorB.insert((*it));
      count += 1;
    }
  }
  </code></pre>
  <p>But I got an error:</p>
  <pre><code>error: no matching function for call to 'std::vector&lt;int&gt;::insert(const int&amp;)'
  </code></pre>
  <p>Why?</p>