towns.cpp: In function 'int ask(int, int)':
towns.cpp:16:21: warning: declaration of 'b' shadows a global declaration [-Wshadow]
16 | int ask(int a, int b){
| ^
towns.cpp:12:14: note: shadowed declaration is here
12 | int n, s, a, b, dep[len];
| ^
towns.cpp:16:21: warning: declaration of 'a' shadows a global declaration [-Wshadow]
16 | int ask(int a, int b){
| ^
towns.cpp:12:11: note: shadowed declaration is here
12 | int n, s, a, b, dep[len];
| ^
towns.cpp: In function 'bool check(int, int)':
towns.cpp:59:24: warning: declaration of 'b' shadows a global declaration [-Wshadow]
59 | bool check(int a, int b){
| ^
towns.cpp:12:14: note: shadowed declaration is here
12 | int n, s, a, b, dep[len];
| ^
towns.cpp:59:24: warning: declaration of 'a' shadows a global declaration [-Wshadow]
59 | bool check(int a, int b){
| ^
towns.cpp:12:11: note: shadowed declaration is here
12 | int n, s, a, b, dep[len];
| ^
towns.cpp: In function 'bool check_cent(std::vector<int>)':
towns.cpp:66:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int i = 0; i < ball.size(); i++){
| ~~^~~~~~~~~~~~~
towns.cpp:80:24: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
80 | int cnt = stck.size();
| ~~~~~~~~~^~
towns.cpp:81:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (int i = 0; i < cons.size(); i++){
| ~~^~~~~~~~~~~~~
towns.cpp:85:33: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
85 | cnt += cons[i].size();
| ^
towns.cpp:89:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for (int j = 0; j < cons[i].size(); j++)
| ~~^~~~~~~~~~~~~~~~
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:111:34: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
111 | lef += (*it).se.size(), it++;
| ^
towns.cpp:113:31: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
113 | int sz = (*it).se.size();
| ~~~~~~~~~~~~~^~
towns.cpp:97:28: warning: unused parameter 'sub' [-Wunused-parameter]
97 | int hubDistance(int N, int sub) {
| ~~~~^~~