towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:45:30: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
45 | ll val = getDist(a, i);
| ^
towns.cpp:54:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | ll distA = getDist(i, a);
| ^
towns.cpp:55:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
55 | ll distB = getDist(i, b);
| ^
towns.cpp:66:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | ll distA = getDist(i, a);
| ^
towns.cpp:67:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
67 | ll distB = getDist(i, b);
| ^
towns.cpp:83:22: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
83 | for (int i = mxDist; i >= 0; i--) {
| ^~~~~~
towns.cpp:87:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
87 | return hubs.empty() ? -res : res;
| ~~~~~~~~~~~~~^~~~~~~~~~~~
towns.cpp:102:26: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
102 | ll val = getDist(a, i);
| ^
towns.cpp:112:31: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
112 | ll distA = getDist(i, a);
| ^
towns.cpp:113:31: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
113 | ll distB = getDist(i, b);
| ^
towns.cpp:130:32: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
130 | ll distX = getDist(x, a) - e.first;
| ^
towns.cpp:130:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
130 | ll distX = getDist(x, a) - e.first;
| ^
towns.cpp:132:26: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
132 | if (find(x) == find(y)) continue;
| ^
towns.cpp:132:37: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
132 | if (find(x) == find(y)) continue;
| ^
towns.cpp:133:36: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
133 | ll distY = getDist(y, a) - e.first;
| ^
towns.cpp:133:39: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
133 | ll distY = getDist(y, a) - e.first;
| ^
towns.cpp:134:29: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
134 | if (getDist(x, y) < distX + distY) {
| ^
towns.cpp:134:32: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
134 | if (getDist(x, y) < distX + distY) {
| ^
towns.cpp:135:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
135 | unite(x, y);
| ^
towns.cpp:135:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
135 | unite(x, y);
| ^
towns.cpp:141:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
141 | ll distA = getDist(i, a);
| ^
towns.cpp:142:35: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
142 | ll distB = getDist(i, b);
| ^
towns.cpp:159:16: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::unordered_map<long long int, std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
159 | return bad == hubs.size() ? -res : res;
| ~~~~^~~~~~~~~~~~~~
towns.cpp:159:31: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
159 | return bad == hubs.size() ? -res : res;
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~