catinatree.cpp: In function 'std::deque<int> d(int)':
catinatree.cpp:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | 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:8:63: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | 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:8:99: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | 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:44: 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=a.size();i>=0;i--) if(i+1<q.size()) q[i]=max(q[i],q[i+1]);}
| ~~~^~~~~~~~~
catinatree.cpp: In function 'int main()':
catinatree.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
13 | for(int r:d(0))q=max(q,r);cout<<q<<'\n';}
| ^~~
catinatree.cpp:13:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | for(int r:d(0))q=max(q,r);cout<<q<<'\n';}
| ^~~~