title: Pointer to a multidimensional vector
body: <p>I am trying to initialize a pointer  (<code>*vectorName</code>) with a 2D vector 366 by 4.</p>
  
  <p>Both</p>
  
  <pre><code>vector&lt;int&gt; *vectorName = new vector&lt;int&gt;(366, new vector&lt;int&gt;(4));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>vector&lt;int&gt; *vectorName = new vector&lt;int&gt;(366, vector&lt;int&gt;(4));
  </code></pre>
  
  <p>do not work and give me the error</p>
  
  <blockquote>
    <p>Error: no instance of constructor "std::vector, &lt;_Ty, _Alloc>::vector [with_ty=int, _Alloc=std_allocator]"
    argument types are (const int, std::vector>*)</p>
  </blockquote>
  
  <p>What can I do?</p>
  
  <p>This is happening within the main function.</p>