lOthBroK286's blog

By lOthBroK286, history, 2 years ago, In English

I'm facing this error while importing this file in order to use ordered set, How can I fix it?

  • Vote: I like it
  • +5
  • Vote: I do not like it

| Write comment?
»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Lol, I had this question as well, and nobody ever replied to my blog :/. However to start off, you need a GCC compiler.

»
2 years ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

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 )

»
2 years ago, hide # |
Rev. 2  
Vote: I like it +2 Vote: I do not like it

Can anyone please recommend something to make it work on a MacBook with a M series chip

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    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.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

You will be needing a GCC Compiler (you can use MinGW or something)