catinatree.cpp: In function 'std::deque<int> dfs(int)':
catinatree.cpp:19:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(int i = 0; i < add.size(); i++)
| ~~^~~~~~~~~~~~
catinatree.cpp:21:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | int opt1 = add[i] + (D - i < res.size() ? res[max(D-i, i)] : 0);
| ~~~~~~^~~~~~~~~~~~
catinatree.cpp:22:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | int opt2 = res[i] + (D - i < add.size() ? add[max(D-i, i)] : 0);
| ~~~~~~^~~~~~~~~~~~
catinatree.cpp:28:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if(i + 1 < res.size())
| ~~~~~~^~~~~~~~~~~~