towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:19:30: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
19 | ll val = getDistance(a, i);
| ^
towns.cpp:28:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
28 | ll distA = getDistance(i, a);
| ^
towns.cpp:29:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
29 | ll distB = getDistance(i, b);
| ^
towns.cpp:36:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
36 | return res;
| ^~~
towns.cpp:7:28: warning: unused parameter 'sub' [-Wunused-parameter]
7 | int hubDistance(int n, int sub) {
| ~~~~^~~