1) manca la

#include <string>

2) la close non ha argomenti