towns.cpp: In function 'int getd(int, int)':
towns.cpp:11:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
11 | return gf[a][b];
| ~~~~~~~^
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:21:5: warning: declaration of 'maxn' shadows a global declaration [-Wshadow]
21 | ll maxn=0,pos=0;
| ^~~~
towns.cpp:7:10: note: shadowed declaration is here
7 | const ll maxn=1e18;
| ^~~~
towns.cpp:29:35: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
29 | for(int i=0;i<N;i++)tor1[i]=getd(r1,i);
| ^~
towns.cpp:38:35: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
38 | for(int i=0;i<N;i++)tor2[i]=getd(r2,i);
| ^~
towns.cpp:66:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for(int i=0,x=now[i];i<now.size();i++,x=now[i]){
| ~^~~~~~~~~~~
towns.cpp:70:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(int j=i,y=now[j];j<now.size();j++,y=now[j]){
| ~^~~~~~~~~~~
towns.cpp:57:11: warning: unused variable 'm' [-Wunused-variable]
57 | int s=0,m=0,l=0;
| ^
towns.cpp:82:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
82 | return ok==1?ans:-ans;
| ~~~~~^~~~~~~~~
towns.cpp:13:28: warning: unused parameter 'sub' [-Wunused-parameter]
13 | int hubDistance(int N, int sub) {
| ~~~~^~~