This bits/stdc++.h header isn't part of the standard C++ library. It's really popular in competitive programming and found in Linux's GCC setups because it's super handy—it pulls in pretty much all the standard C++ libraries at once. But on macOS, especially when you're using clang++ from Xcode, this header isn’t included by default. That's why you had to add it yourself.