Added #include <cstdlib> in io.cpp for exit() function.