cout << "Enter in width (X): ";
cin >> temp;
temp++;
const int maxX = temp;
cout << "Enter in height (Y): ";
cin >> temp;
temp++;
const int maxY = temp;
GridSpot map[maxX][maxY];
I don't get it. maxX and maxY ARE constants. Granted, they are being declared with the value of another variable (temp). And of course, when I change temp to an actual value (when declaring maxY and maxX), it works fine.