road_construction.cpp: In function 'void solve()':
road_construction.cpp:98:26: warning: comparison of integer expressions of different signedness: 'std::multiset<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
98 | if(st.size() > x)
| ~~~~~~~~~~^~~
road_construction.cpp:101:66: warning: comparison of integer expressions of different signedness: 'std::multiset<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
101 | if(st1.size() && it->fi < *(--st.end()) || st.size() < x){
| ~~~~~~~~~~^~~
road_construction.cpp:101:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
101 | if(st1.size() && it->fi < *(--st.end()) || st.size() < x){
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
road_construction.cpp:102:30: warning: comparison of integer expressions of different signedness: 'std::multiset<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
102 | if(st.size() >= x){
| ~~~~~~~~~~^~~~
road_construction.cpp:32:8: warning: unused variable 'q' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:20: warning: unused variable 'm' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:28: warning: unused variable 'z' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:32: warning: unused variable 's' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:40: warning: unused variable 'f' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:43: warning: unused variable 'l' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:47: warning: unused variable 'r' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^
road_construction.cpp:32:76: warning: unused variable 'mx' [-Wunused-variable]
32 | ll q , i , j , m , n , z , s = 0, f, l , r , k , x , y , mn = 1e18 , mx = 0;
| ^~
road_construction.cpp:54:47: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | mn = min(mn , abs(to.fi - x) + abs(to.se - y));
| ~~~^~~~~~~~~~~