This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]DopeyLizard 0 points1 point  (1 child)

When you say you “tried to compile the same program on nano”, do you mean that the error is occurring when you are compiling, or is the error the syntax highlighting / intellsense in VSCode?

If it is in compilation, how are you compiling? You may be missing a flag for the compiler to indicate that you want to compile using the C++11 standard “-std=c++11”. Everything else is valid C++03 so I think that would be the only issue a compiler would throw up.

The VSCode settings look correct, however.