once_twice's blog

By once_twice, history, 13 months 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

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

Worked for me.

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

Thanks, worked for me...

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

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

»
4 months 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!

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

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

  • »
    »
    4 months 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).

    • »
      »
      »
      4 months 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.

»
4 months 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 :|

»
4 months 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.

  • »
    »
    4 months 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

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

Thanks!! worked for me.

»
6 weeks 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.

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

Thankyou so much

»
33 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

thanks a lot bro it works very fine!!!