settings -> Extensions -> run code configure -> Executor Map -> Edit in settings.json 在 gcc 中添加 -std=c++17,如下图所示 相关文章: