SyntaxFix
Write A Post
Hire A Developer
Questions
You're not including the standard <string> header.
<string>
You got [un]lucky that some of its pertinent definitions were accidentally made available by the other standard headers that you did include ... but operator<< was not.
operator<<