<cstring>
is the header for C strings, i.e, its content is the same as the C header string.h
. What you need to handle std::string
is <string>
Another problem is that you missed the semicolon:
using namespace std;
// ^
Note that this style works, but is not recommend, it's better not to use this line and use:
std::cout << std::endl << output << std::endl;