When i debug i get this error :"there would build errors. Would you like to continue and run the last successful build?"
How can i compile my program?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
string name;
double pounds, kg;
cout <<"what is your name(first name only)?";
cin >> name;
cout << "how many pounds do you weigh?";
cin >> name;
cout << "how many pounds do you weigh?";
cin >> pounds;
kg = pounds / 2.205;
cout <<name<<", you weigh"<<kg<<"kilograms."<<endl;
system ("pause");
}