CP_Sucks's blog

By CP_Sucks, history, 3 years ago, In English

If any like me get this error while importing the Pbds in #includes..

I got error importing this -> #include<ext/pb_ds/assoc_container.hpp> Error was "cannot open source file hash_standard_resize_policy_imp.hpp ".

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 for me .

I don't know the real reason why the file was weirdly name before if someone knows plz comment down below and tell.

Hope this helps.

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

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

Worked for me.

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

Thanks, worked for me...

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

You are a life saver!!!Worked for windows 10..

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

I had been avoiding the hassle of trying to get pbds to work, but it seems like it's this simple! Yay!

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

Thank you !! Thank you !! Inthakanna em cheppagalam..

  • »
    »
    2 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Is this Tamil? Or maybe it's Telugu (looks similar but I can't understand it lol).

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Haha, it's a Telugu dialogue meaning — "What can I say more (than thanking you)". Btw Tamil & Telugu are completely different.

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

Yes it is certainly weird given the fact that they didn't rectified this error for i don't know how long , seems like every version of gcc comes with file like this, or maybe it's not an error at all :|

»
2 years ago, # |
  Vote: I like it -6 Vote: I do not like it

Probably the most useful post i've read in a while on codeforces!

Thank you, now i don't have to use the custom invocation tab whenever i use pb_ds.

  • »
    »
    2 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Also the only useful Post I have written. I mostly write hate comments otherwise

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

Thanks!! worked for me.

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

It worked.If there were more than one option to vote, I would flood you with it.

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

Thankyou so much

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

thanks a lot bro it works very fine!!!

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

Its really working!. Amazing brother

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

thanks . it is working now.

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks bro worked for me

»
21 month(s) ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks. It worked for me..

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

Thanks , It really helped

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

Thank you, it worked for me.

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

Thanks it too worked for me

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

Thanks. It worked.

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

Thanks, it worked for me too.

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

Thanks, Worked for me

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

Thanks a lot, It worked for me.

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

Worked for me too ... really saved my time !!

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

Thank you so much man!! was looking for it..

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

Thanks a lot!! If anyone wants to learn basics of ordered set and why should we use it u can refer this video by my friend Priyansh31dec here is the link to the tutorial Secret Data Structure in C++ || Ordered Set || Policy Based DataStructure || Competitive Programming

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

It is still working on Windows, thank you

»
8 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Worked for me too! Thanks! IDK what's holding the provider from fixing this. Gave me a headache for almost half an hour...until I came across THIS magical post :D

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

Thanks a lot, it worked for me.

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

fine it's worked for me. hash_standard_resize_policy_imp.hpp0000644 to hash_standard_resize_policy_imp

remove .hpp0000644

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

Thank you so much .........