Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

How do I use pbds like ordered set on Visual Studio 2022 which uses msvc compiler?
Difference between en1 and en2, changed 68 character(s)
Hello Codeforces! I cannot include the files #include<ext/pb_ds/assoc_container.hpp> and #include<ext/pb_ds/tree_policy.hpp> in my code. They were giving me an undefined file error. So what i did was that i downloaded these files from a github repo of gnu files. This was the repo : https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/ext/pb_ds/tree_policy.hpp↵



Now the files were being included but the next typedef line was giving me undefined errors↵

![ ](/predownloaded/76/a3/76a3a488f17907bda601f9965d80c75d1d4a114019/04/19049f50983871f981b5b4aca10600799d27e37a.png)

what do i do now? is it such that these pbds are exclusive to the gnu/g++ compilers or is there a way? Please help me. Thank you!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English 5yearold 2024-06-23 00:14:43 8
en2 English 5yearold 2024-06-23 00:13:47 68
en1 English 5yearold 2024-06-23 00:11:04 761 Initial revision (published)