catinatree.cpp: In function 'std::vector<int> dfs(int)':
catinatree.cpp:25:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int i = 0; i < add.size(); i++) {
| ~~^~~~~~~~~~~~
catinatree.cpp:26:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | int a = rev(add, i) + (k - i < res.size() ?
| ~~~~~~^~~~~~~~~~~~
catinatree.cpp:28:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | int b = rev(res, i) + (k - i < add.size() ?
| ~~~~~~^~~~~~~~~~~~
catinatree.cpp:33:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if (i + 1 < res.size())
| ~~~~~~^~~~~~~~~~~~