fun.cpp: In function 'std::vector<int> createFunTour(int, int)':
fun.cpp:38:16: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (i = 1; i < dis.size(); i++) {
| ~~^~~~~~~~~~~~
fun.cpp:90:73: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'll' {aka 'int'} [-Wsign-compare]
90 | if (max({ subtree[0].size(), subtree[1].size(), subtree[2].size() }) >= (r - 1) / 2) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
fun.cpp:94:12: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | if (mx == subtree[0].size()) na = 0;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:95:12: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
95 | if (mx == subtree[1].size()) na = 1;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:96:12: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | if (mx == subtree[2].size()) na = 2;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:62:6: warning: variable 'chk' set but not used [-Wunused-but-set-variable]
62 | ll chk = 0;
| ^~~
In file included from /usr/include/c++/10/cassert:44,
from fun.cpp:3:
fun.cpp:114:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
114 | assert(ans.size() == N);
| ~~~~~~~~~~~^~~~
fun.cpp:97:5: warning: 'na' may be used uninitialized in this function [-Wmaybe-uninitialized]
97 | if (na == a) {
| ^~