Add inclusion of stdlib to make printf declared.
Fix list of sources in Makefile for problem 2.