title: Range for loop of a multi-dimensional array, what type to use?
body: <p>Hi I got a sligth problem, I'm trying to do a range for loop of a multidimensional array but I can't figure out what type to use. With this code the program works flawlessly but when I try to choose my type instead of auto I get errors, I've tried searching for the problem but haven't found anything. help would be appreciated!</p>
  
  <pre><code>int ia[3][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
  
  for( auto &amp;ref_ia : ia){
  
      for(int &amp;ref_ref : ref_ia){
  
          cout &lt;&lt; ref_ref &lt;&lt; " ";
  
      }
  
  }
  </code></pre>