error: 'nullptr' was not declared in this scope
两种情况
1. vs code 自带编译失败的,没有使用code runner插件的
在 task.josn 里的这行json代码里 加上 "-std=c++11"
"args": ["-m32","-g","-std=c++11","${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}.exe"],
2. 使用了code runner的