To compile run:

g++ -Wall -g -std=c++11 *.cpp -o main

and to run it:

./main