#include std::string input; std::cin >> input;
The user wants to enter \"Hello World\". But cin fails at the spa
cin
Use :
getline(cin, input);
the function can be found in
#include