prog.cpp:10:57: error: 'cmp' is not a type
priority_queue<int, vector<int>, decltype(cmp) > pq(cmp); // Error at pq(cmp) : function "cmp" is not a type name
^
In file included from /usr/include/c++/5/queue:64:0,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_queue.h: In instantiation of 'class std::priority_queue<int, std::vector<int>, bool(int, int)>':
prog.cpp:16:60: required from here
/usr/include/c++/5/bits/stl_queue.h:391:18: error: field 'std::priority_queue<int, std::vector<int>, bool(int, int)>::comp' invalidly declared function type
_Compare comp;
^