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:65:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(int i=0,x=now[i];i<now.size();i++,x=now[i]){
| ~^~~~~~~~~~~
towns.cpp:69:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | for(int j=i,y=now[j];j<now.size();j++,y=now[j]){
| ~^~~~~~~~~~~
towns.cpp:56:11: warning: unused variable 'm' [-Wunused-variable]
56 | int s=0,m=0,l=0;
| ^
towns.cpp:81:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | return ok==1?ans:-ans;
| ~~~~~^~~~~~~~~
towns.cpp:13:28: warning: unused parameter 'sub' [-Wunused-parameter]
13 | int hubDistance(int N, int sub) {
| ~~~~^~~