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:93:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
93 | if(av.size() <= n / 2)
| ~~~~~~~~~~^~~~~~~~
towns.cpp:94:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
94 | return R;
| ^
towns.cpp:97:9: warning: declaration of 'x' shadows a previous local [-Wshadow]
97 | int x = av.back();
| ^
towns.cpp:68:5: note: shadowed declaration is here
68 | ll x = R;
| ^
towns.cpp:98:14: warning: declaration of 'u' shadows a previous local [-Wshadow]
98 | for(auto u : av){
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:107:14: warning: declaration of 'u' shadows a previous local [-Wshadow]
107 | for(auto u : tmp)
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:120:8: warning: declaration of 'num' shadows a previous local [-Wshadow]
120 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:76:7: note: shadowed declaration is here
76 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:135:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
135 | if(av.size() <= n / 2)
| ~~~~~~~~~~^~~~~~~~
towns.cpp:136:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
136 | return R;
| ^
towns.cpp:139:10: warning: declaration of 'x' shadows a previous local [-Wshadow]
139 | int x = av.back();
| ^
towns.cpp:68:5: note: shadowed declaration is here
68 | ll x = R;
| ^
towns.cpp:140:15: warning: declaration of 'u' shadows a previous local [-Wshadow]
140 | for(auto u : av){
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:149:15: warning: declaration of 'u' shadows a previous local [-Wshadow]
149 | for(auto u : tmp)
| ^
towns.cpp:48:6: note: shadowed declaration is here
48 | int u = v;
| ^
towns.cpp:154:10: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
154 | return -R;
| ^~
towns.cpp:158:6: warning: declaration of 'len' shadows a global declaration [-Wshadow]
158 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:167:10: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
167 | return R;
| ^
towns.cpp:170:6: warning: declaration of 'len' shadows a global declaration [-Wshadow]
170 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:175:7: warning: declaration of 'num' shadows a previous local [-Wshadow]
175 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:156:6: note: shadowed declaration is here
156 | int num[3] = {0, 0, 0};
| ^~~
towns.cpp:177:7: warning: declaration of 'len' shadows a global declaration [-Wshadow]
177 | ll len = (dis1[i] + dis2[i] - dis1[v]) / 2;
| ^~~
towns.cpp:28:4: note: shadowed declaration is here
28 | ll len[maxn5];
| ^~~
towns.cpp:186:11: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
186 | return R;
| ^
towns.cpp:188:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
188 | return -R;
| ^~