fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Square {
  5. Square(int,int) {}
  6. };
  7.  
  8. const int SQUARE_ARRAY_SIZE = 4;
  9. const int SQUARE_INFO_SIZE = 4;
  10. typedef Square SquareArray[SQUARE_ARRAY_SIZE];
  11. typedef SquareArray* SquareInfo[SQUARE_INFO_SIZE];
  12.  
  13. SquareArray RedGeneric = { Square(0, 0), Square(0, 1),
  14. Square(1, 1), Square(1, 0) };
  15. SquareInfo RedInfo = { &RedGeneric, &RedGeneric, //problem here
  16. &RedGeneric, &RedGeneric };
  17.  
  18. int main() {
  19. // your code goes here
  20. return 0;
  21. }
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty