include <cstdio> so that printf() is declared