idnefier endl in undefince code example Example: idnefier endl in undefince try adding: std:: before both of your endl's