title: Inserting elements in multidimensional Vector
body: <pre><code>vector&lt;vector&lt;int&gt;&gt; sort_a;
  vector&lt;int&gt; v2;
  vector&lt;int&gt; v3;
  
  for (int i=0; i&lt;4; ++i) {
  v2.push_back(i);
  
    for (int j=0; j&lt;4; ++j) {
    v3.push_back(j);
    sort_a.push_back(v2);
    sort_a.push_back(v3);
    }
  
  }
  </code></pre>
  
  <p>Vector sort_a should be a 4x4 array, instead the output is 31x1 with lots of empty elements, how do i insert elements in a multidimensional vector ?</p>