Added std:: to cerr and endl.
Fix conflict error.