To compile it just write: g++ main.cpp