catinatree.cpp: In function 'std::deque<int> d(int)':
catinatree.cpp:9:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i = 0; i < a.size(); i++) q[i] = max(q[i], max(a[i] + (D-i < q.size() ? q[max(D-i, i)] : 0), q[i] + (D-i < a.size() ? a[max(D-i, i)] : 0)));
| ~~^~~~~~~~~~
catinatree.cpp:9:76: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i = 0; i < a.size(); i++) q[i] = max(q[i], max(a[i] + (D-i < q.size() ? q[max(D-i, i)] : 0), q[i] + (D-i < a.size() ? a[max(D-i, i)] : 0)));
| ~~~~^~~~~~~~~~
catinatree.cpp:9:122: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for(int i = 0; i < a.size(); i++) q[i] = max(q[i], max(a[i] + (D-i < q.size() ? q[max(D-i, i)] : 0), q[i] + (D-i < a.size() ? a[max(D-i, i)] : 0)));
| ~~~~^~~~~~~~~~
catinatree.cpp:10:51: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = a.size(); i >= 0; i--) if(i+1 < q.size()) q[i] = max(q[i], q[i+1]); }
| ~~~~^~~~~~~~~~