che tipo di tato è stringa?
se è char allora va bene
se è string(STL) allora devi trasformarla in char con .c_str()
codice:
ifstream in_file(nome.c_str())
Cmq controlla di avere incluso <fstream> e di avere using namespace std; attivato