dev-c++ non è un compilatore.
Per quanto riguarda l'errore, includi anche fstream