title: error: incompatible types in assignment of `int' to `int[2]'
body: <p>The following C++ code:</p>
  
  <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;          //error happens here.
          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>MinGW g++ produces this error: </p>
  
  <pre><code>incompatible types in assignment of `int' to `int[2]'
  </code></pre>
  
  <p>The problem is at <code>iBlocks[iUCtr] = 0;</code>. </p>
  
  <p>When I changed iBlocks to a pointer, it worked.  Can someone explain to me what is going on under the hood?</p>