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:51:30: warning: unused variable 'y' [-Wunused-variable]
51 | int x = (a + c - b) / 2, y = (a + b - c) / 2, z = (b + c - a) / 2;
| ^
towns.cpp:70:49: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
70 | int curr = max(max(p.second, p.first), dist(i, j) - p.first);
| ^
towns.cpp:70:52: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
70 | int curr = max(max(p.second, p.first), dist(i, j) - p.first);
| ^
towns.cpp:33:28: warning: unused parameter 'sub' [-Wunused-parameter]
33 | int hubDistance(int n, int sub) {
| ~~~~^~~