new_home.cpp: In function 'void solve()':
new_home.cpp:35:18: error: no matching function for call to 'std::vector<std::pair<int, int> >::resize(int, double)'
35 | sg.resize(sz*2,1e9);
| ~~~~~~~~~^~~~~~~~~~
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 new_home.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:1013:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::resize(size_type) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; size_type = long unsigned int]'
1013 | resize(size_type __new_size)
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1013:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/13/bits/stl_vector.h:1034:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::resize(size_type, const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; size_type = long unsigned int; value_type = std::pair<int, int>]'
1034 | resize(size_type __new_size, const value_type& __x)
| ^~~~~~
/usr/include/c++/13/bits/stl_vector.h:1034:54: note: no known conversion for argument 2 from 'double' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
1034 | resize(size_type __new_size, const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~