Revert "printf -> cout"

This reverts commit 55f43e4fa1eac2c43dbd0874d9cc5b93b2fa1911.