If you compile and run my Grid.cpp

source code, does it work or give an error ?