idnefier endl en indéfince

try adding: std:: before both of your endl's 
Determined Deer