printing contents of 2d vector
<p>this is the code I am running:</p>

<pre><code>std::vector&lt;std::vector&lt;double&gt;&gt; test;
test.push_back(std::vector&lt;double&gt;(30));

 std::vector&lt;std::vector&lt;double&gt; &gt;::iterator it=test.begin(), end=test.end();
    while (it!=end) {
      std::vector&lt;double&gt;::iterator it1=it-&gt;first.begin(),end1=it-&gt;first.end();
      while (it1!=end1) {
    std::copy(it1.begin(),it1.end(),std::ostream_iterator&lt;double&gt;(std::cout, " "));
    ++it1;
      }
      ++it;
    }
</code></pre>

<p>this is the compilation error I get:</p>

<pre><code>data.cpp:33:45: error: ‘class std::vector&lt;double&gt;’ has no member named ‘first’
data.cpp:33:68: error: ‘class std::vector&lt;double&gt;’ has no member named ‘first’
data.cpp:35:16: error: ‘class std::vector&lt;double&gt;::iterator’ has no member named ‘begin’
data.cpp:35:28: error: ‘class std::vector&lt;double&gt;::iterator’ has no member named ‘end’
data.cpp:35:34: error: ‘ostream_iterator’ is not a member of ‘std’
data.cpp:35:56: error: expected primary-expression before ‘double'
</code></pre>

<p>any suggestions on how to fix it so I can print the contents of test</p>
