Add the stdlib include file: #include <cstdlib> or alternately #include <stdlib.h>
View entire thread