sequence.cpp: In member function 'void cht::add(line)':
sequence.cpp:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(v.size() > p && v.back().x == l.x){
~~~~~~~~~^~~
sequence.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(v.size() >= p + 2 && bad(v[v.size()-2], v.back(), l)){
~~~~~~~~~^~~~~~~~
sequence.cpp: In member function 'std::tuple<long long int, int, int> cht::query(lint)':
sequence.cpp:28:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p + 1 < v.size() && v[p].x * x + v[p].y <= v[p+1].x * x + v[p+1].y) p++;
~~~~~~^~~~~~~~~~
sequence.cpp: In function 'void printv(std::vector<int>)':
sequence.cpp:60:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<v.size(); i++){
~^~~~~~~~~
sequence.cpp:64:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i+1<v.size(); i++) printf("%d ", v[i]);
~~~^~~~~~~~~
sequence.cpp: In function 'int main()':
sequence.cpp:83:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l.size() == k + 1) printv(l);
~~~~~~~~~^~~~~~~~
sequence.cpp:84:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(r.size() == k + 1) printv(r);
~~~~~~~~~^~~~~~~~
sequence.cpp:85:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i+1<r.size(); i++){
~~~^~~~~~~~~
sequence.cpp:87:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(l[idx] >= r[i+1] && (i + 1) + (l.size() - idx) == k + 1){
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
sequence.cpp:90:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=idx; j<l.size(); j++) v.push_back(l[j]);
~^~~~~~~~~
sequence.cpp:69:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&k); k++;
~~~~~^~~~~~~~~~~~~~~
sequence.cpp:72:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
~~~~~^~~~~~~~~