towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:67:10: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
67 | return R;
| ^
towns.cpp:91:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
91 | if(av.size() <= n / 2)
| ~~~~~~~~~~^~~~~~~~
towns.cpp:92:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
92 | return R;
| ^
towns.cpp:95:9: warning: declaration of 'x' shadows a previous local [-Wshadow]
95 | int x = av.back();
| ^
towns.cpp:68:5: note: shadowed declaration is here
68 | ll x = R;
| ^
towns.cpp:96:14: warning: declaration of 'u' shadows a previous local [-Wshadow]
96 | for(auto u : av){
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:105:14: warning: declaration of 'u' shadows a previous local [-Wshadow]
105 | for(auto u : tmp)
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:115:8: warning: declaration of 'num' shadows a previous local [-Wshadow]
115 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:76:7: note: shadowed declaration is here
76 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:130:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
130 | if(av.size() <= n / 2)
| ~~~~~~~~~~^~~~~~~~
towns.cpp:131:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
131 | return R;
| ^
towns.cpp:134:10: warning: declaration of 'x' shadows a previous local [-Wshadow]
134 | int x = av.back();
| ^
towns.cpp:68:5: note: shadowed declaration is here
68 | ll x = R;
| ^
towns.cpp:135:15: warning: declaration of 'u' shadows a previous local [-Wshadow]
135 | for(auto u : av){
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:144:15: warning: declaration of 'u' shadows a previous local [-Wshadow]
144 | for(auto u : tmp)
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:149:10: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
149 | return R;
| ^
towns.cpp:153:6: warning: declaration of 'len' shadows a global declaration [-Wshadow]
153 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:162:10: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
162 | return R;
| ^
towns.cpp:165:6: warning: declaration of 'len' shadows a global declaration [-Wshadow]
165 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:170:7: warning: declaration of 'num' shadows a previous local [-Wshadow]
170 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:151:6: note: shadowed declaration is here
151 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:172:7: warning: declaration of 'len' shadows a global declaration [-Wshadow]
172 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:181:11: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
181 | return R;
| ^
towns.cpp:183:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
183 | return -R;
| ^~