sequence.cpp: In member function 'int CHT::query(ll)':
sequence.cpp:46:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
46 | int mid=lo+hi>>1;
| ~~^~~
sequence.cpp: In function 'pll solve(ll)':
sequence.cpp:77:11: warning: unused variable 'it' [-Wunused-variable]
77 | for(auto it : V)
| ^~
sequence.cpp: In function 'int main()':
sequence.cpp:92:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
92 | ll mid=lo+hi>>1;
| ~~^~~
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from sequence.cpp:1:
sequence.cpp:99:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
99 | assert(L.size()==dp[N].second+1);
| ~~~~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:101:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
101 | assert(R.size()==dp[N].second+1);
| ~~~~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:103:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
103 | if(L.size()-1==K)
| ~~~~~~~~~~^~~
sequence.cpp:107:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
107 | else if(R.size()-1==K)
| ~~~~~~~~~~^~~
In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from sequence.cpp:1:
sequence.cpp:113:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
113 | assert(L.size()<K && K<R.size());
| ~~~~~~~~^~
sequence.cpp:113:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
113 | assert(L.size()<K && K<R.size());
| ~^~~~~~~~~
sequence.cpp:114:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for(int i=0; i+1<R.size(); i++)
| ~~~^~~~~~~~~
sequence.cpp:118:48: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
118 | if(L[lt]<=l && r<=L[lt+1] && i+L.size()-lt-1==K)
| ~~~~~~~~~~~~~~~^~~
sequence.cpp:121:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
121 | for(int j=lt+1; j<R.size(); j++) ansV.push_back(L[j]);
| ~^~~~~~~~~
sequence.cpp:130:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
130 | for(int i=1; i+1<ansV.size(); i++) printf("%d ", ansV[i]);
| ~~~^~~~~~~~~~~~
sequence.cpp: In function 'pll solve(ll)':
sequence.cpp:80:1: warning: control reaches end of non-void function [-Wreturn-type]
80 | }
| ^
sequence.cpp: In function 'int main()':
sequence.cpp:84:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
84 | scanf("%d%d", &N, &K); K++;
| ~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:85:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
85 | for(int i=1; i<=N; i++) scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~