Use %zu as printf format specifier for size_t of std::map. But why are not just std::cout and std::cerr used instead of printf?