不懂如何在 mac 下安装 gcc(mac 下 terminal 里的 伪 gcc 是 clang) 主要是在线 oj 大部分都是 gcc 或 g++, 有些在 clang 通过的题在网站上的 g++ 就有段错误之类的. 但是比较喜欢 mac 下的 clion 布局和 debug 界面希望大家给点指点, 谢谢.
认证高级PHP讲师
Homebrewbrew install gcc
If clang is written without errors and errors occur when compiling and running on gcc, it is probably because there is undefined behavior in your program. Adding the -Werror or -Wall parameter will help
Homebrew
brew install gcc
If clang is written without errors and errors occur when compiling and running on gcc, it is probably because there is undefined behavior in your program. Adding the -Werror or -Wall parameter will help