three dimensional vectors in C++
<p>I have in my c++ code:</p>

<pre><code>  typedef vector&lt;int&gt; cards;
  typedef vector&lt;cards&gt; rows;
  typedef vector&lt;rows&gt; matriz;
</code></pre>

<p>and in my <code>int main()</code> , i try to initilizate a matriz called "cartas" with this line;</p>

<pre><code>  63  cin&gt;&gt;n&gt;&gt;m;
  66  cartas(n,rows(m, cards(0)));
</code></pre>

<p>but, with g++, get out this error:</p>

<pre><code>flip.cpp: In function ‘int main()’:
flip.cpp:66: error: no match for call to ‘(matriz) (int&amp;, rows)’
</code></pre>

<p>i want to take a matriz of <code>n*m</code>, where in each position, there is vector of integers. </p>

<p>thanks, now, i don't see it how.</p>
