skyscraper.cpp:24:38: error: wrong number of template arguments (3, should be at least 1)
24 | queue<seg, vector<seg>, greater<seg> > pq;
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from skyscraper.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:96:11: note: provided for 'template<class _Tp, class _Sequence> class std::queue'
96 | class queue
| ^~~~~
skyscraper.cpp: In function 'void dijkstra()':
skyscraper.cpp:29:8: error: request for member 'push' in 'pq', which is of non-class type 'int'
29 | pq.push({0, b[0], 0});
| ^~~~
skyscraper.cpp:31:14: error: request for member 'size' in 'pq', which is of non-class type 'int'
31 | while(pq.size())
| ^~~~
skyscraper.cpp:33:22: error: request for member 'top' in 'pq', which is of non-class type 'int'
33 | seg top = pq.top();
| ^~~
skyscraper.cpp:34:12: error: request for member 'pop' in 'pq', which is of non-class type 'int'
34 | pq.pop();
| ^~~
skyscraper.cpp:49:28: error: request for member 'push' in 'pq', which is of non-class type 'int'
49 | pq.push({dis, i, p[x]});
| ^~~~
skyscraper.cpp:60:32: error: request for member 'push' in 'pq', which is of non-class type 'int'
60 | pq.push({dp[j][0], j, 0});
| ^~~~
skyscraper.cpp:70:32: error: request for member 'push' in 'pq', which is of non-class type 'int'
70 | pq.push({dp[j][0], j, 0});
| ^~~~
skyscraper.cpp:82:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
82 | pq.push({dp[i + pk][pk], i + pk, pk});
| ^~~~
skyscraper.cpp:87:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
87 | pq.push({dp[i - pk][pk], i - pk, pk});
| ^~~~
skyscraper.cpp:92:20: error: request for member 'push' in 'pq', which is of non-class type 'int'
92 | pq.push({dp[i][0], i, 0});
| ^~~~