I use VS 2012 and it gives the error in this IDE, weorks fine with 2017 and 2019 It returns
1>consoleapplication2.cpp(41): error C2039: \'priority_queue\' :