Use <cstdio> etc. for C++