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:43:5: warning: declaration of 'maxn' shadows a global declaration [-Wshadow]
43 | ll maxn=0,pos=0;
| ^~~~
towns.cpp:7:10: note: shadowed declaration is here
7 | const ll maxn=1e18;
| ^~~~
towns.cpp:51:35: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
51 | for(int i=0;i<N;i++)tor1[i]=getd(r1,i);
| ^~
towns.cpp:87:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
87 | for(int i=1,x=now[i];i<now.size();i++,x=now[i]){
| ~^~~~~~~~~~~
towns.cpp:101:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
101 | for(int i=0,x=now[i];i<now.size();i++,x=now[i]){
| ~^~~~~~~~~~~
towns.cpp:108:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
108 | for(int i=0,x=now[i];i<now.size();i++,x=now[i]){
| ~^~~~~~~~~~~
towns.cpp:77:11: warning: unused variable 'm' [-Wunused-variable]
77 | int s=0,m=0,l=0;
| ^
towns.cpp:115:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
115 | return ok==1?ans:-ans;
| ~~~~~^~~~~~~~~
towns.cpp:34:28: warning: unused parameter 'sub' [-Wunused-parameter]
34 | int hubDistance(int N, int sub) {
| ~~~~^~~