Printing an array of linked lists
<p>PLEASE HELP
I have this array list, each index having a different length linked list embedded. How do I print this?</p>

<pre><code>#include &lt;list&gt;
#include &lt;etc...&gt;

for (int i = 0; i &lt; N; i++) {
   std::cout &lt;&lt; "Number of elements in row " &lt;&lt; i &lt;&lt; endl;
   std::cin &gt;&gt; s;
   s = s * 2;

   for (int j = 0; j &lt; s; j++){
        std::cin &gt;&gt; k;
        listArray2[i].push_back(k);
   }

}
</code></pre>