https://zhuanlan.zhihu.com/p/36654741

按照以上教程配置时 出现"preLaunchTask": "build", error   然后把tasks.json 的gcc改成g++ 就行了

原作者用gcc 去编译cpp 不炸才怪。。