Can you please explain why did he referred to C++ 11 while pushing pairs in priority queue and he did not use make_pair function instead use {} to make pairs?
and which version of C++ are we currently using and how is it different from C++ 11?
Why did he pass that C++ 11 flag while compiling and he also referred something about C++ 11 while pushing pair in priority queue?
Hi… so for making pair u can either write make_pair or {}… normally c++ 11 or c+ 14 is only used… doesn’t make any much difference
do u still have any doubts??
While compiling code, why did he passed -C++11 flag? Is it because he used { } to make pair?
yes it may be bcoz of {} only… rest there is no issue whether us use {} or make_pair
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.