This is a header file that includes every standard library. It is primarily used for competitive programming.
| Platform | Status |
|---|---|
| macOS | ✅ |
-
create a directory for bits/stdc++.h
sudo mkdir -p /Library/Developer/CommandLineTools/usr/include/bits
-
create a file named
stdc++.hin the directorysudo touch /Library/Developer/CommandLineTools/usr/include/bits/stdc++.h
-
copy the content of
stdc++.hto the fileyou can download the file from here
sudo code /Library/Developer/CommandLineTools/usr/include/bits/stdc++.h
Include the header file in your program using the following code:
#include <bits/stdc++.h>-
Stack Overflow: How can I include <bits/stdc++> in Xcode?
-
GitHub: bits/stdc++.h