--- a/bad_alloc.cc +++ b/bad_alloc.cc @@ -8,6 +8,7 @@ #include <exception> #include <sys/time.h> #include <sys/resource.h> +#include <cstdlib> using namespace std;