towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:40:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
40 | dist2[i][j] = dist2[j][i] = getDistance(i, j);
| ^
towns.cpp:40:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
40 | dist2[i][j] = dist2[j][i] = getDistance(i, j);
| ^
towns.cpp:50:18: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:50:21: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:50:34: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:50:37: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:50:50: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:50:53: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | int a = dist(i, j), b = dist(j, k), c = dist(i, k);
| ^
towns.cpp:33:28: warning: unused parameter 'sub' [-Wunused-parameter]
33 | int hubDistance(int n, int sub) {
| ~~~~^~~