renamed makefile to Makefile
change atoi() to std::stoi() to be error safe