towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:35:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
35 | if (dist(0, i) > maxdist) {
| ^
towns.cpp:36:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
36 | maxdist = dist(0, i);
| ^
towns.cpp:37:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
37 | furthest = i;
| ^
towns.cpp:44:39: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
44 | if (i != furthest && dist(furthest, i) > maxdist) {
| ^
towns.cpp:45:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
45 | maxdist = dist(furthest, i);
| ^
towns.cpp:46:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
46 | furthest2 = i;
| ^
towns.cpp:52:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
52 | res = min(res, max((abs(dist(furthest2, i) - dist(furthest, i)) + dist(furthest, furthest2)) / 2, (dist(furthest2, i) + dist(furthest, i) - dist(furthest, furthest2)) / 2));
| ^
towns.cpp:52:64: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
52 | res = min(res, max((abs(dist(furthest2, i) - dist(furthest, i)) + dist(furthest, furthest2)) / 2, (dist(furthest2, i) + dist(furthest, i) - dist(furthest, furthest2)) / 2));
| ^
towns.cpp:52:119: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
52 | res = min(res, max((abs(dist(furthest2, i) - dist(furthest, i)) + dist(furthest, furthest2)) / 2, (dist(furthest2, i) + dist(furthest, i) - dist(furthest, furthest2)) / 2));
| ^
towns.cpp:52:139: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
52 | res = min(res, max((abs(dist(furthest2, i) - dist(furthest, i)) + dist(furthest, furthest2)) / 2, (dist(furthest2, i) + dist(furthest, i) - dist(furthest, furthest2)) / 2));
| ^
towns.cpp:32:28: warning: unused parameter 'sub' [-Wunused-parameter]
32 | int hubDistance(int N, int sub) {
| ~~~~^~~