I'm facing this error while importing this file in order to use ordered set, How can I fix it?
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
I'm facing this error while importing this file in order to use ordered set, How can I fix it?
| Name |
|---|



Lol, I had this question as well, and nobody ever replied to my blog :/. However to start off, you need a GCC compiler.
If you use win 7, 8, 10 or 11 and you have Mingw (is the compiler for c++ ):-
Fix go to the dir -> C:\MinGW\lib\gcc\mingw32\8.2.0\include\c++\ext\pb_ds\detail\resize_policy
There u will see a file similar to -> "hash_standard_resize_policy_imp.hpp0000644"
Rename it to hash_standard_resize_policy_imp.hpp
and now it worked (I hope <3 )
thanks:) It's working
Can anyone please recommend something to make it work on a MacBook with a M series chip
For Macs, just download GCC from home-brew, that is how it worked for me and change your compiler to gcc in your preferred IDE, it may still show error for bits/stdc++.h and ordered set libraries when importing but the code will compile for you, to fix the linter you will have to go through a lot of trouble which I dont believe is necessary.
You will be needing a GCC Compiler (you can use MinGW or something)