title: Adding elements to a 2D vector (Vector of vectors) C++
body: <p>So lets say i have the:</p>
  <pre><code>vector&lt;vector&lt;int&gt; &gt; temp;
  </code></pre>
  <p>so it'd just be an empty 2d vector and pretend it's filled with 0s so it'd look like:</p>
  <pre><code>0  0
  0  0
  0  0
  0  0
  </code></pre>
  <p>and let's say I want to add something to that vector, like if I had:</p>
  <pre><code>int x = 3, y = 4;
  </code></pre>
  <p>I want to push these onto the vector so that it looks something like:</p>
  <pre><code>0  0
  0  0
  0  0
  3  4
  </code></pre>
  <p>and I've tried:
  <code>temp.push_back(x,y);</code> but this isn't the correct syntax.</p>