Code:{ cout<<"Enter two numbers to be added: "; cin>>a>>b; cout<<"The sum of your two numbers is: "<<add(a, b); cin.get(); return 0; //!! Seems pretty pointless to quit the program after one run } int add(int a, int b) //!! Embedded function definitions are not supported - move them outside of main() { cin.get(); return a+b; }