Main.cc: In lambda function:
Main.cc:21:67: error: wrong number of template arguments (0, should be 1)
21 | priority_queue,vector>,greater<>>pq;
| ^
In file included from /usr/include/c++/11/string:48,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Main.cc:1:
/usr/include/c++/11/bits/stl_function.h:385:12: note: provided for ‘template struct std::greater’
385 | struct greater : public binary_function<_Tp, _Tp, bool>
| ^~~~~~~
Main.cc:21:68: error: template argument 3 is invalid
21 | priority_queue,vector>,greater<>>pq;
| ^~
Main.cc:22:12: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
22 | pq.push({0,s});
| ^~~~
Main.cc:24:19: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
24 | while(!pq.empty()){
| ^~~~~
Main.cc:25:23: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
25 | auto c=pq.top();pq.pop();
| ^~~
Main.cc:25:32: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’
25 | auto c=pq.top();pq.pop();
| ^~~
Main.cc:33:24: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
33 | pq.push({d[x],x});
| ^~~~