You're right, there is "#include <cstdio>" missing.