问题: 使用run code执行代码出错,但是用F5可以正常运行 解决方法: 打开setting.json文件,将code-runner中前两行代码注释,使用后两行 参考: vscode中编译c++文件No such file or directory_单林敏的博客-CSDN博客https://blog.csdn.net/neve_give_up_dan/article/details/105470743