Resizing 2D vector in C++ and fill with 0
<p>I've got integers n and m and two vectors:</p>

<pre><code>vector&lt; vector&lt;int&gt; &gt; inputGrid;
vector&lt; vector&lt;int&gt; &gt; outputGrid;
</code></pre>

<p>How do I resize the 2D vectors to (n, m) and put a 0 in place?</p>

<p>Thanks</p>