The array's size must be specified as follows:
int majorPositions[][3]={{0,90,-90},{90,15,90},{-45,-30,30},{0,60,0}};
or
int majorPositions[4][3]={{0,90,-90},{90,15,90},{-45,-30,30},{0,60,0}};
Can't you just express the last column, which is merely ON/OFF, as a 1 or 0?