I have no problem compiling files with G , but VS code reports an error to the C 11 standard syntax. I want to know how to make VS code detect the syntax normally.
- a space is required between consecutive right angle brackets (use '> >')
- non-aggregate type 'vector<vector >' cannot be initialized with an initializer list
CodePudding user response:
Add "C_Cpp.default.cppStandard": "c 11"
to settings.json. (F1 -> Open Settings (JSON)
or Open Workspace Settings (JSON)
)