title: Compiler gives "excess element in array initializer" warning in objective C with 2D C-array
body: <p>I'm just learning Objective C and writing a program to aid people in learning to play the guitar. I wanted to create a 2D array containing (almost) all the notes on a guitar neck. Since there are six strings on the guitar and twelve notes in an octave, I created a 6 x 12 array. <strong>EDIT: solution is now at bottom</strong></p>
  
  <p><em>The intention here is for the array to be read as</em> <strong>(string),(fret number)</strong>.</p>
  
  <pre><code>int strings[6][12] = {
      { {0, 8},{0, 9},{0, 10},{0, 11} ,{0, 12} ,{0, 1}, {0, 2},{0, 3},{0, 4},{0, 5},{0, 6},{0, 7} },
      { {1, 3},{1, 4},{1, 5},{1, 6},{1, 7},{1, 8,},{1, 9},{1, 10},{1, 11} ,{1, 12},{1, 1},{1, 2} },
      { {2, 12},{2, 1},{2, 2},{2, 3},{2, 4},{2, 5},{2, 6},{2, 7},{2, 8},{2, 9},{2, 10},{2, 11} },
      { {3, 6}, {3, 7} , {3, 8} , {3, 9} ,{3, 10} ,{3, 11} ,{3, 12} ,{3, 1} ,{3, 2} ,{3, 3} ,{3, 4} ,{3, 5} },
      { {4, 1} ,{4, 2} ,{4, 3} ,{4, 4} ,{4, 5} ,{4, 6} ,{4, 7} ,{4, 8} ,{4, 9} , {4, 10} ,{4, 11} ,{4, 12} },
      { {5, 9},{5, 10},{5, 11} , {5, 12} ,{5, 1},{5, 2},{5, 3},{5, 4},{5, 5},{5, 6},{5, 7},{5, 8} }
  };
  </code></pre>
  
  <p>The problem is, XCode throws an warning: "excess elements in array initializer." What am I doing wrong? I've counted the elements numerous times and still am left scratching my head.</p>