I want to declare length of array with global variable. But I got error, I am confused for solving this.
int BARIS = 8;
//I get error when declare Squares Array with global variable (BARIS variable)
int SquaresInfo[BARIS];
int main(int argc, const char * argv[]) {
cout << "\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t Tekan ENTER untuk masuk ke permainan";
if(cin.get() == '\n' ) {
system("clear");
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
gameInterface();
} else {
cout << " ";
}
return 0;
}

I get error when declare length of SquareInfo array. I am confusing how to declare array length with global variable