du musst using std; davor setzen, oder std::cout anstelle von cout...