sequence.cpp: In member function 'pll CHT::query(ll)':
sequence.cpp:41:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Line>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | if(pos>=S.size()) pos=S.size()-1;
| ~~~^~~~~~~~~~
sequence.cpp:42:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Line>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | else while(pos+1<S.size() && cross(S[pos], S[pos+1])<=x) pos++;
| ~~~~~^~~~~~~~~
sequence.cpp: In function 'int main()':
sequence.cpp:84:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
84 | 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:92:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
92 | assert(L.size()==dp[N].second+1);
| ~~~~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:94:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
94 | assert(R.size()==dp[N].second+1);
| ~~~~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:96:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
96 | if(L.size()-1==K)
| ~~~~~~~~~~^~~
sequence.cpp:100:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
100 | 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:106:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
106 | assert(L.size()-1<K && K<R.size()-1);
| ~~~~~~~~~~^~
sequence.cpp:106:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | assert(L.size()-1<K && K<R.size()-1);
| ~^~~~~~~~~~~
sequence.cpp:107:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for(int i=0; i+1<R.size(); i++)
| ~~~^~~~~~~~~
sequence.cpp:112:48: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
112 | if(L[lt]<=l && r<=L[lt+1] && i+L.size()-lt-1==K)
| ~~~~~~~~~~~~~~~^~~
sequence.cpp:115:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int j=lt+1; j<L.size(); j++) ansV.push_back(L[j]);
| ~^~~~~~~~~
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:116:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
116 | assert(ansV.size()-1==K);
| ~~~~~~~~~~~~~^~~
sequence.cpp:126:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
126 | for(int i=1; i+1<ansV.size(); i++) printf("%d ", ansV[i]);
| ~~~^~~~~~~~~~~~
sequence.cpp:76:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
76 | scanf("%d%d", &N, &K); K++;
| ~~~~~^~~~~~~~~~~~~~~~
sequence.cpp:77:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
77 | for(int i=1; i<=N; i++) scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~