SyntaxFix
Write A Post
Hire A Developer
Questions
You need to
#include <string>
<iostream> declares cout, cin, not string.
<iostream>
cout
cin
string