skyscraper.cpp:58:15: warning: overflow in conversion from 'double' to 'll' {aka 'int'} changes value from '1.0e+18' to '2147483647' [-Woverflow]
58 | const ll INF=1e18;
| ^~~~
skyscraper.cpp: In function 'bool make_edge(int, int, int)':
skyscraper.cpp:74:17: error: 'class std::vector<std::pair<int, int> >' has no member named 'count'
74 | if(g[v].count({w, to}))return 0;
| ^~~~~
skyscraper.cpp:75:17: error: no matching function for call to 'std::vector<std::pair<int, int> >::insert(<brace-enclosed initializer list>)'
75 | g[v].ins({w, to});
| ~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/13/vector:66,
from /usr/include/c++/13/functional:64,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53,
from skyscraper.cpp:2:
/usr/include/c++/13/bits/stl_vector.h:1482:9: note: candidate: 'template<class _InputIterator, class> constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with <template-parameter-2-2> = _InputIterator; _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >]'
1482 | insert(const_iterator __position, _InputIterator __first,
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1482:9: note: template argument deduction/substitution failed:
skyscraper.cpp:75:17: note: candidate expects 3 arguments, 1 provided
75 | g[v].ins({w, to});
| ~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/13/vector:72:
/usr/include/c++/13/bits/vector.tcc:133:5: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::vector<std::pair<int, int> >::iterator; const_iterator = std::vector<std::pair<int, int> >::const_iterator; value_type = std::pair<int, int>]'
133 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/vector.tcc:133:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/13/bits/stl_vector.h:1393:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::vector<std::pair<int, int> >::iterator; const_iterator = std::vector<std::pair<int, int> >::const_iterator; value_type = std::pair<int, int>]'
1393 | insert(const_iterator __position, value_type&& __x)
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1393:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/13/bits/stl_vector.h:1411:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, std::initializer_list<_Tp>) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::vector<std::pair<int, int> >::iterator; const_iterator = std::vector<std::pair<int, int> >::const_iterator]'
1411 | insert(const_iterator __position, initializer_list<value_type> __l)
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1411:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/13/bits/stl_vector.h:1437:7: note: candidate: 'constexpr std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, size_type, const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; iterator = std::vector<std::pair<int, int> >::iterator; const_iterator = std::vector<std::pair<int, int> >::const_iterator; size_type = long unsigned int; value_type = std::pair<int, int>]'
1437 | insert(const_iterator __position, size_type __n, const value_type& __x)
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1437:7: note: candidate expects 3 arguments, 1 provided