The size of an array shall be a constant expression (greater than 0). Change this declaration
int BARIS = 8;
to
const int BARIS = 8;
The C++ Standard does not allow Variable Length Arrays (VLA) though some compilers have their own language extensions that allow to use VLA(s). And moreover VLA(s) shall have automatic storage duration. That is if you are allowed to define a VLA then it shall be a local array
From the C Standard where VLA(s) are allowed (6.7.6.2 Array declarators)
...If an identifier is declared to be an object with static or thread storage duration, it shall not have a variable length array
type.
If the variable may not be constant then use std::vector instead of the array. For example
#include
//...
int BARIS = 8;
std::vector SquaresInfo( BARIS );