title: atoi conversion segmentation fault working on windows but not in ubuntu
body: <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;  
  
  vector &lt;vector&lt;string&gt; &gt; vector2;
  vector&lt;string&gt; vector;
  
  for(int i = 0; i &lt; vector.size();i++)
  {
      vector2[atoi(vector[i+1].c_str())].push_back(vector[i]);
      i++;
  }
  </code></pre>
  
  <p>I try this on Windows, its working fine. But when i try to compile on ubuntu64-bits
  it has this segmentation error, anyone enlighten to?</p>