/in/foo.cc: In function 'void dijkstra(int)':
/in/foo.cc:26:67: error: wrong number of template arguments (0, should be 1)
26 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> pq;
| ^
In file included from /usr/include/c++/12/bits/refwrap.h:39,
from /usr/include/c++/12/deque:65,
from /usr/include/c++/12/queue:60,
from /in/foo.cc:3:
/usr/include/c++/12/bits/stl_function.h:393:12: note: provided for 'template<class _Tp> struct std::greater'
393 | struct greater : public binary_function<_Tp, _Tp, bool>
| ^~~~~~~
/in/foo.cc:26:68: error: template argument 3 is invalid
26 | priority_queue<pair<int, int>, vector<pair<int, int>>, greater<>> pq;
| ^~
/in/foo.cc:28:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
28 | pq.push({0, s});
| ^~~~
/in/foo.cc:29:16: error: request for member 'empty' in 'pq', which is of non-class type 'int'
29 | while (!pq.empty()) {
| ^~~~~
/in/foo.cc:30:20: error: request for member 'top' in 'pq', which is of non-class type 'int'
30 | int u = pq.top().second;
| ^~~
/in/foo.cc:31:12: error: request for member 'pop' in 'pq', which is of non-class type 'int'
31 | pq.pop();
| ^~~
/in/foo.cc:38:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
38 | pq.push({d[v], v});
| ^~~~