cyberland.cpp: In function 'double solve(int, int, int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
cyberland.cpp:10:5: error: 'vis' was not declared in this scope
10 | vis.assign(n + 1, vector <bool>(k, 0));
| ^~~
cyberland.cpp:14:28: warning: narrowing conversion of 'y.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
14 | adj[x[i]].push_back({y[i], c[i]});
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
cyberland.cpp:14:28: warning: narrowing conversion of 'c.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
cyberland.cpp:15:28: warning: narrowing conversion of 'x.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
15 | adj[y[i]].push_back({x[i], c[i]});
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
cyberland.cpp:15:28: warning: narrowing conversion of 'c.std::vector<int>::operator[](((std::vector<int>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'double' [-Wnarrowing]
cyberland.cpp:48:30: error: 'const __gnu_cxx::__alloc_traits<std::allocator<std::pair<double, std::pair<int, int> > >, std::pair<double, std::pair<int, int> > >::value_type' {aka 'const struct std::pair<double, std::pair<int, int> >'} has no member named 'ff'
48 | auto curr = pq.top().ff;
| ^~
cyberland.cpp:49:27: error: 'const __gnu_cxx::__alloc_traits<std::allocator<std::pair<double, std::pair<int, int> > >, std::pair<double, std::pair<int, int> > >::value_type' {aka 'const struct std::pair<double, std::pair<int, int> >'} has no member named 'ss'
49 | auto x = pq.top().ss.ff;
| ^~
cyberland.cpp:50:27: error: 'const __gnu_cxx::__alloc_traits<std::allocator<std::pair<double, std::pair<int, int> > >, std::pair<double, std::pair<int, int> > >::value_type' {aka 'const struct std::pair<double, std::pair<int, int> >'} has no member named 'ss'
50 | auto y = pq.top().ss.ss;
| ^~
cyberland.cpp:57:24: error: no matching function for call to 'std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::push(<brace-enclosed initializer list>)'
57 | pq.push({curr + w, v, y});
| ~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/queue:66,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157,
from cyberland.cpp:2:
/usr/include/c++/13/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<double, std::pair<int, int> >; _Sequence = std::vector<std::pair<double, std::pair<int, int> > >; _Compare = std::greater<std::pair<double, std::pair<int, int> > >; value_type = std::pair<double, std::pair<int, int> >]'
738 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::value_type&' {aka 'const std::pair<double, std::pair<int, int> >&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = std::pair<double, std::pair<int, int> >; _Sequence = std::vector<std::pair<double, std::pair<int, int> > >; _Compare = std::greater<std::pair<double, std::pair<int, int> > >; value_type = std::pair<double, std::pair<int, int> >]'
746 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::value_type&&' {aka 'std::pair<double, std::pair<int, int> >&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
cyberland.cpp:61:24: error: no matching function for call to 'std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::push(<brace-enclosed initializer list>)'
61 | pq.push({(curr + w) / 2, {v, y + 1}});
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<double, std::pair<int, int> >; _Sequence = std::vector<std::pair<double, std::pair<int, int> > >; _Compare = std::greater<std::pair<double, std::pair<int, int> > >; value_type = std::pair<double, std::pair<int, int> >]'
738 | push(const value_type& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:738:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::value_type&' {aka 'const std::pair<double, std::pair<int, int> >&'}
738 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = std::pair<double, std::pair<int, int> >; _Sequence = std::vector<std::pair<double, std::pair<int, int> > >; _Compare = std::greater<std::pair<double, std::pair<int, int> > >; value_type = std::pair<double, std::pair<int, int> >]'
746 | push(value_type&& __x)
| ^~~~
/usr/include/c++/13/bits/stl_queue.h:746:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<double, std::pair<int, int> >, std::vector<std::pair<double, std::pair<int, int> > >, std::greater<std::pair<double, std::pair<int, int> > > >::value_type&&' {aka 'std::pair<double, std::pair<int, int> >&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~