I am facing issue in using the Policy Based Data Structures in C++ as the following errors occur. So far I have tried:↵
↵
1.) Updated and used GCC↵
↵
`~~~~~↵
$ gcc NONAME00.cpp` ↵
`NONAME00.cpp:8:10: fatal error: 'ext/pb_ds/assoc_container.hpp' file not found`↵
`#include <ext/pb_ds/assoc_container.hpp>`↵
` ^~~~~~~~~~~~`↵
`1 error generated.`↵
~~~~~↵
↵
↵
↵
↵
↵
↵
2.) Updated and used G++↵
↵
`~~~~~↵
$ g++ NONAME00.cpp` ↵
`NONAME00.cpp:8:10: fatal error: 'ext/pb_ds/assoc_container.hpp' file not found`↵
`#include <ext/pb_ds/assoc_container.hpp>`↵
` ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`↵
`1 error generated.`↵
~~~~~↵
↵
↵
↵
↵
↵
↵
3.) Added the files `<ext/pb_ds/assoc_container.hpp>` and `<ext/pb_ds/tree_policy.hpp>` to respective locations and then again compiled with `gcc` and `g++`.↵
↵
Can anyone tell me the solution to this?
↵
1
↵
$ gcc NONAME00.cpp
~~~~~↵
↵
↵
↵
↵
↵
↵
2
↵
$ g++ NONAME00.cpp
~~~~~↵
↵
↵
↵
↵
↵
↵
3
↵
Can anyone tell me the solution to this?