Specifically: Remove an unused header (stdio.h), replace <stdlib.h> by its C++ counterpart (<cstlib>), and reference malloc() and free() from the std:: namespace.