catinatree.cpp: In function 'std::deque<int> d(int)':
catinatree.cpp:9:22: 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.z;i++)q[i]=max(q[i],max(a[i]+(D-i<q.z?q[max(D-i,i)]:0),q[i]+(D-i<a.z?a[max(D-i,i)]:0)));
| ^
catinatree.cpp:9:58: 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.z;i++)q[i]=max(q[i],max(a[i]+(D-i<q.z?q[max(D-i,i)]:0),q[i]+(D-i<a.z?a[max(D-i,i)]:0)));
| ^
catinatree.cpp:9:89: 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.z;i++)q[i]=max(q[i],max(a[i]+(D-i<q.z?q[max(D-i,i)]:0),q[i]+(D-i<a.z?a[max(D-i,i)]:0)));
| ^
catinatree.cpp:10:39: 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.z;i>=0;i--) if(i+1<q.z) q[i]=max(q[i],q[i+1]);}
| ^
catinatree.cpp: In function 'int main()':
catinatree.cpp:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
14 | for(int r:d(0))q=max(q,r);cout<<q<<'\n';}
| ^~~
catinatree.cpp:14:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
14 | for(int r:d(0))q=max(q,r);cout<<q<<'\n';}
| ^~~~