1 我在 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 中包含了 bits/stdc++ 头文件。 即使它给了我一个错误。
2 之后,我将项目的标题搜索路径更改为 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1。 然后错误得到修复。但是,当我尝试编译我的代码时,它显示构建失败。