towns.cpp: In function 'int getd(int, int)':
towns.cpp:11:22: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
11 | if(a==0)return to0[b];
| ~~~~~^
towns.cpp:12:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
12 | else if(b==0)return to0[a];
| ~~~~~^
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:17:5: warning: declaration of 'maxn' shadows a global declaration [-Wshadow]
17 | ll maxn=0,pos=0;
| ^~~~
towns.cpp:7:10: note: shadowed declaration is here
7 | const ll maxn=1e18;
| ^~~~
towns.cpp:25:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
25 | for(int i=0;i<N;i++)tor1[i]=getDistance(r1,i);
| ^~
towns.cpp:34:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
34 | for(int i=0;i<N;i++)tor2[i]=getDistance(r2,i);
| ^~
towns.cpp:77:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
77 | return ok==1?ans:-ans;
| ~~~~~^~~~~~~~~
towns.cpp:15:28: warning: unused parameter 'sub' [-Wunused-parameter]
15 | int hubDistance(int N, int sub) {
| ~~~~^~~