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++) {
| ~~^~~~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
from fun.cpp:3:
fun.cpp:82:82: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
82 | assert((2*max({ subtree[0].size(), subtree[1].size(), subtree[2].size() }) <= (N)));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
fun.cpp:93:80: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'll' {aka 'int'} [-Wsign-compare]
93 | if (chk||2*max({ subtree[0].size(), subtree[1].size(), subtree[2].size() }) >= (r)-2) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
fun.cpp:97:18: 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]
97 | if (a!=0&&mx == subtree[0].size()) na = 0;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:98:18: 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]
98 | if (a!=1&&mx == subtree[1].size()) na = 1;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:99:18: 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]
99 | if (a!=2&&mx == subtree[2].size()) na = 2;
| ~~~^~~~~~~~~~~~~~~~~~~~
fun.cpp:114:17: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for (i = 0; i < ans.size(); i++) assert(ans[i] != c);
| ~~^~~~~~~~~~~~
fun.cpp:81:10: warning: unused variable 'abc' [-Wunused-variable]
81 | ll abc=c;
| ^~~