Doubt int the line 7

why we pass “vector int”?

HI @Royal_Yashasvi
template <class T, class Container = vector<T>, class Compare = less<typename Container::value_type> > class priority_queue;
this is the actual class template for the priority queue data structure.
As you can see it takes 3 arguments. First one is T (our datatype, int in this case), second one is a container, basicallly tells the the function what type of storage do you want. So basically, our PQ is implemented using that data structure behind the scenes, in this case a vector.
It is a default argument, but if we want to change the third argument to convert it into a MIN HEAP then we also have to specify the second argument, because arguments can be passed in a particular order only.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.