towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:14:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
14 | dis0[i] = getDistance(0, i);
| ^
towns.cpp:15:36: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
15 | int a = max_element(dis0, dis0+n) - dis0;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
towns.cpp:17:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
17 | disa[i] = getDistance(a, i);
| ^
towns.cpp:18:36: warning: conversion from 'long int' to 'int' may change value [-Wconversion]
18 | int b = max_element(disa, disa+n) - disa;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
towns.cpp:20:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
20 | disb[i] = getDistance(b, i);
| ^
towns.cpp:12:28: warning: unused parameter 'sub' [-Wunused-parameter]
12 | int hubDistance(int n, int sub) {
| ~~~~^~~