error: incompatible types in assignment of `int' to `int[2]'
<pre><code>int iBlocks[9][2];
class System{
  void setBlocks(){
       int iUCtr = 0;
       int iUYCtr = 105;
       while(1){
            int iUXCtr = 180;
            while(1){
                 iBlocks[iUCtr] = 0;
                 iBlocks[iUCtr][0] = iUXCtr;
                 iBlocks[iUCtr][1] = iUYCtr;
                 iUCtr += 1;
                 iUXCtr += 120;
                 if(iUXCtr&gt;420) break; 
            }
            iUYCtr += 120;
            if(iUYCtr&gt;345) break;
       }
  }
   public:
          System(){
               setBlocks();
               cout &lt;&lt; "Block settings set..." &lt;&lt; endl;   
          }
};
</code></pre>

<p>The problem is at <code>iBlocks[iUCtr] = 0;</code>. MinGW g++ reports this error:</p>

<blockquote>
  <p>incompatible types in assignment of `int' to `int[2]'.</p>
</blockquote>

<p>When I changed it to a pointer, it worked but the value the array (1st dimension) contained is the memory address of the array. The rest of the code worked just as expected.</p>
