title: Printing all elements in array of Vector
body: <pre><code>int n=1000000;
  
  vector &lt;int&gt; divisors[1000001];
  
  void solve()
  
  {
     
      for(int i=1; i&lt;=n; i++)
           
          for(int j=i; j&lt;=n; j+=i)
                 
        divisors[j].push_back(i);
  
  }
  </code></pre>
  <p>Now, I want to print all the elements of the divisors. How can I do this?</p>