The C++ Standard requires that the C standard library be declared in namespace std, just as the C++ Standard Library. Thus, if you #include <cstdio> and call printf(), you should use a fully qualified name, a using-declaration, or a using-directive. For example:
#include <cstdio>
int main ()
{
std::printf (