road.cpp: In lambda function:
road.cpp:26:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 0; i < g[u].size(); i++)
| ~~^~~~~~~~~~~~~
road.cpp: In lambda function:
road.cpp:71:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (int i = 0; i < g[u].size(); i++)
| ~~^~~~~~~~~~~~~
road.cpp:154:20: error: cannot bind non-const lvalue reference of type 'std::multiset<std::pair<int, int> >&' to an rvalue of type 'std::multiset<std::pair<int, int> >'
154 | st.swap(multiset<pair<int, int>>());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/10/set:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from road.cpp:1:
/usr/include/c++/10/bits/stl_multiset.h:437:22: note: initializing argument 1 of 'void std::multiset<_Key, _Compare, _Alloc>::swap(std::multiset<_Key, _Compare, _Alloc>&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >]'
437 | swap(multiset& __x)
| ~~~~~~~~~~^~~
road.cpp:156:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
156 | for (int i = 0; i < g[u].size(); i++)
| ~~^~~~~~~~~~~~~
road.cpp:166:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
166 | for (int i = 0; i < g[u].size(); i++)
| ~~^~~~~~~~~~~~~