title: Expected unqualified-id before '[' token
body: <p>I know this error is generally for syntax errors, but I can't seem to find anything wrong with this code.  Can anyone help me point it out?  Here are the errors I'm getting:</p>
  
  <blockquote>
    <p>deli.cc:10:7: error: expected unqualified-id before ‘[’ token
           int [] myCashierNums;
               ^
        deli.cc:11:7: error: expected unqualified-id before ‘[’ token
           int [] myOrderNums;
               ^</p>
  </blockquote>
  
  <p>Here's the program I compiled using g++ on Ubuntu 14.04 64-bit.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  
  using namespace std;
  
  class SandwichBoard {
    //private:
      int myMaxOrders;
      int [] myCashierNums;
      int [] myOrderNums;
  
    //public:
      SandwichBoard (int maxOrders) {
        myMaxOrders = maxOrders;
        myCashierNums = new int [maxOrders];
        myOrderNums = new int [maxOrders];
  
        // All values initialized to -1
        for (int i = 0; i &lt; maxOrders; i++){
          myCashierNums[i] = -1;
          myOrderNums[i] = -1;
        }
      }
  
      // For debugging purposes
      void printMyOrders() {
        for (int i = 0; i &lt; maxOrders; i++){
          cout &lt;&lt; "Cashier " &lt;&lt; myCashierNums[i] &lt;&lt; ", ";
          cout &lt;&lt; "Order " &lt;&lt; myOrderNums[i] &lt;&lt; endl;
        }
      }
  
      int getMaxOrders () { return myMaxOrders; }
  
  };
  
  void cashier(void *in) {
  
  }
  
  void sandwich_maker(void *in) {
  
  }
  
  int main(int argc, char *argv[]) {
  
  }
  </code></pre>