catinatree.cpp: In function 'void merge(std::deque<int>&, std::deque<int>&)':
catinatree.cpp:30:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int d1 = 0; d1 < v2.size() && d1 <= D - d1; d1++) {
| ~~~^~~~~~~~~~~
catinatree.cpp:32:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (d2 >= v2.size()) {
| ~~~^~~~~~~~~~~~
catinatree.cpp:41:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int d2 = 0; d2 < v2.size() && d2 <= D - d2; d2++) {
| ~~~^~~~~~~~~~~
catinatree.cpp:43:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | if (d1 >= v1.size()) {
| ~~~^~~~~~~~~~~~
catinatree.cpp: In function 'int main()':
catinatree.cpp:79:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | scanf("%d %d", &N, &D);
| ~~~~~^~~~~~~~~~~~~~~~~
catinatree.cpp:86:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | scanf("%d", &p);
| ~~~~~^~~~~~~~~~