Блог пользователя lOthBroK286

Автор lOthBroK286, история, 2 года назад, По-английски

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

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
2 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
2 года назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

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 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +2 Проголосовать: не нравится

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

  • »
    »
    4 месяца назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    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 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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