Mac bits/stdc++.h' file not found
时间: 2023-10-16 14:03:52 浏览: 180
回答:在Mac上,不应该使用`#include <bits/stdc++.h>`这样的格式来包含头文件。这是因为`bits/stdc++.h`是一个非标准的头文件,只在部分编译器中支持。在Mac上,你可以使用标准的头文件,例如`#include <iostream>`、`#include <vector>`等来替代`bits/stdc++.h`。这样可以避免"bits/stdc .h' file not found"这个错误。如果你的代码中使用了非标准的头文件,建议修改代码来使用标准的头文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Mac下clion中 fatal error: ‘bits/stdc++.h‘ file not found](https://blog.csdn.net/weixin_43356770/article/details/123773278)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [MacOS VSCode 使用<bits/stdc++.h>万能头提示 fatal error: ‘bits/stdc++.h‘ file not found](https://blog.csdn.net/qq_43142218/article/details/128427625)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文