sequence.cpp: In function 'bool chk(std::pair<long long int, long long int>, std::pair<long long int, long long int>, std::pair<long long int, long long int>)':
sequence.cpp:10:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
10 | if(a.first == a.first && b.second == b.second) return false;
| ~~~~~~~ ^~ ~~~~~~~
sequence.cpp:10:39: warning: self-comparison always evaluates to true [-Wtautological-compare]
10 | if(a.first == a.first && b.second == b.second) return false;
| ~~~~~~~~ ^~ ~~~~~~~~
sequence.cpp:11:16: warning: self-comparison always evaluates to true [-Wtautological-compare]
11 | if(a.first == a.first && c.second == c.second) return false;
| ~~~~~~~ ^~ ~~~~~~~
sequence.cpp:11:39: warning: self-comparison always evaluates to true [-Wtautological-compare]
11 | if(a.first == a.first && c.second == c.second) return false;
| ~~~~~~~~ ^~ ~~~~~~~~
sequence.cpp: In function 'int main()':
sequence.cpp:41:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<std::pair<long long int, long long int>, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | while(x < cht.size()-1 && cht[x+1].second < i && chk2(cht[x].first, cht[x+1].first, sum[i-1])) x++;
| ~~^~~~~~~~~~~~~~
sequence.cpp:60:27: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(long long i = 0;i < ret.size();i++) printf("%lld ", ret[i]);
| ~~^~~~~~~~~~~~
sequence.cpp:22:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%lld %lld", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
sequence.cpp:24:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | for(long long i = 0;i < n;i++) scanf("%lld", &v[i]);
| ~~~~~^~~~~~~~~~~~~~~