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