title: Getting random numbers on vector operation c++
body: <p>I'm getting weird numbers as output in this code :</p>
  <pre><code>#include &lt;iostream&gt; 
  #include &lt;vector&gt; 
  
  int main(){
  
      std::vector&lt;std::vector&lt;int&gt;&gt; vec = {{0,1},{2,3}};
      
      vec.push_back({4,5});
      vec.push_back({5,6});
  
      for (int i = 0; i &lt; vec.size(); i++){
          for (int i2 = 0; i2 &lt; vec.size(); i2++){
              std::cout &lt;&lt; vec[i][i2] &lt;&lt; std::endl; 
          }
      }
  
  
      return 0;
  }
  </code></pre>
  <p>It's returning to me:</p>
  <pre class="lang-none prettyprint-override"><code>0
  1
  1280136264
  0
  2
  3
  347673833
  38962
  4
  5
  297276653
  134256690
  5
  6
  280499436
  268474418
  </code></pre>
  <p>I just want to know how to do it properly, and why I'm getting these numbers.</p>