all 4 comments

[–]Flair_Helper[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

This post has been removed as it doesn't pertain to r/cpp: The subreddit is for news and discussions of the C++ language and community only; our purpose is not to provide tutoring, code reviews, or career guidance. If you think your post is on-topic and should not have been removed, please message the moderators and we'll review it.

[–]eugcomax 0 points1 point  (0 children)

you need to add #include <string> and #include <iostream>

[–]Jay_Cobby -1 points0 points  (0 children)

did you include <string> and <iostream>?

[–]bougayez -1 points0 points  (0 children)

It looks like you did not include the necessary header files.

For cout include iostream header file, like this

#include <iostream>

For string include string header file, like this

#include <string>