skyscrapers.cpp: In function 'void BFS(int)':
skyscrapers.cpp:44:55: error: no matching function for call to 'std::priority_queue<int, std::vector<int>, BFS(int)::<lambda(int, int)> >::priority_queue()'
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:597:2: note: candidate: 'template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&) [with _InputIterator = _InputIterator; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
597 | priority_queue(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:597:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 4 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:586:2: note: candidate: 'template<class _InputIterator> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Sequence&) [with _InputIterator = _InputIterator; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
586 | priority_queue(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:586:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 4 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:554:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(std::priority_queue<_Tp, _Sequence, _Compare>&&, const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
554 | priority_queue(priority_queue&& __q, const _Alloc& __a)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:554:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 2 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:550:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const std::priority_queue<_Tp, _Sequence, _Compare>&, const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
550 | priority_queue(const priority_queue& __q, const _Alloc& __a)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:550:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 2 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:545:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&, const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
545 | priority_queue(const _Compare& __x, _Sequence&& __c, const _Alloc& __a)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:545:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 3 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:539:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Sequence&, const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
539 | priority_queue(const _Compare& __x, const _Sequence& __c,
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:539:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 3 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:533:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
533 | priority_queue(const _Compare& __x, const _Alloc& __a)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:533:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 2 arguments, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:529:2: note: candidate: 'template<class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Alloc&) [with _Alloc = _Alloc; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
529 | priority_queue(const _Alloc& __a)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:529:2: note: template argument deduction/substitution failed:
skyscrapers.cpp:44:55: note: candidate expects 1 argument, 0 provided
44 | priority_queue<int, vector<int>, decltype( comp)> nodeList;
| ^~~~~~~~
In file included from /usr/include/c++/10/queue:64,
from skyscrapers.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:523:7: note: candidate: 'std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, _Sequence&&) [with _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
523 | priority_queue(const _Compare& __x, _Sequence&& __s = _Sequence())
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:523:7: note: candidate expects 2 arguments, 0 provided
/usr/include/c++/10/bits/stl_queue.h:518:7: note: candidate: 'std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(const _Compare&, const _Sequence&) [with _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
518 | priority_queue(const _Compare& __x, const _Sequence& __s)
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:518:7: note: candidate expects 2 arguments, 0 provided
/usr/include/c++/10/bits/stl_queue.h:514:2: note: candidate: 'template<class _Seq, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue() [with _Seq = _Seq; _Requires = _Requires; _Tp = int; _Sequence = std::vector<int>; _Compare = BFS(int)::<lambda(int, int)>]'
514 | priority_queue()
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:514:2: note: template argument deduction/substitution failed:
/usr/include/c++/10/bits/stl_queue.h:511:43: error: no type named 'type' in 'struct std::enable_if<false, void>'
511 | template<typename _Seq = _Sequence, typename _Requires = typename
| ^~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:456:11: note: candidate: 'std::priority_queue<int, std::vector<int>, BFS(int)::<lambda(int, int)> >::priority_queue(const std::priority_queue<int, std::vector<int>, BFS(int)::<lambda(int, int)> >&)'
456 | class priority_queue
| ^~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:456:11: note: candidate expects 1 argument, 0 provided
/usr/include/c++/10/bits/stl_queue.h:456:11: note: candidate: 'std::priority_queue<int, std::vector<int>, BFS(int)::<lambda(int, int)> >::priority_queue(std::priority_queue<int, std::vector<int>, BFS(int)::<lambda(int, int)> >&&)'
/usr/include/c++/10/bits/stl_queue.h:456:11: note: candidate expects 1 argument, 0 provided