Doctored it up for you.
using namespace std;
//put the following in one command and used \n so that the program is a tad more efficient :D
cin.ignore(); //incase there is something in the input stream, this clears it so that cin.get(); can work properly
cin.get(); //so that the program will pause before exiting
return 0; //always return 0 if the program runs successfully