I'll copy and paste my code here, please tell me what I am missing.
/*
Desired result: two successful inputs
current result: one successful input
*/
#include <iostream>
using namespace std;
string problem;
int solutions;
int main()
{
cout << "What is your problem?" << endl << "My problem is that " ;
cin >> problem;
cout << endl << endl << "And how many solutions are there?" << endl;
cin >> solutions;
cout << endl << endl << "thank you";
return 0;
}
/*
Desired result: two successful inputs
current result: one successful input
*/
#include <iostream>
using namespace std;
string problem;
int solutions;
int main()
{
cout << "What is your problem?" << endl << "My problem is that " ;
cin >> problem;
cout << endl << endl << "And how many solutions are there?" << endl;
cin >> solutions;
cout << endl << endl << "thank you";
return 0;
}