title: Remove Element from std::vector<std::string> >
body: <p>My compiler complains. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  using namespace std;
  
  int main(){
  
          vector&lt;string&gt; vec[2];
          vec[0].push_back("test1");
          vec[0].push_back("test2");
  
          cout &lt;&lt; vec[0][0] &lt;&lt; endl;
          vec[0].erase(vec.begin());
          cout &lt;&lt; vec[0][1] &lt;&lt; endl;
  
  }
  </code></pre>
  
  <p>What is wrong when I call erase?</p>