Using the <bits/stdc++.h> header on pros

Can you use #include<bits/stdc++.h> while using PROS ? (some compilers doesn’t support it).
It includes all c++ standard library since I want to use vector and pair to store values in my code.

Just include the specific headers for what you need if you’re worried. Just use #include <vector>. Pair should come with the standard library already. I’ve never needed to include anything to use it.

Bits/stdc++.h is pretty overkill. It contains all sorts of stuff you don’t need like hashmaps, bitsets, priorty queues, etc…

5 Likes