minerals.cpp: In function 'void Solve(int)':
minerals.cpp:41:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i = 0;i<v[1].size();i++)bk[0].back().push_back(v[1][i]);
| ~^~~~~~~~~~~~
minerals.cpp:54:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
54 | for(auto &j:req[i])cerr<<j.fs<<' '<<j.sc<<',';cerr<<endl;
| ^~~
minerals.cpp:54:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
54 | for(auto &j:req[i])cerr<<j.fs<<' '<<j.sc<<',';cerr<<endl;
| ^~~~
minerals.cpp:57:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for(int j = 0;j<req[i].size();j++){
| ~^~~~~~~~~~~~~~
minerals.cpp:77:33: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
77 | if(bk[i+1].end()[-2].size() == mid-l+1){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
minerals.cpp:81:33: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'std::tuple_element<1, std::pair<int, int> >::type' {aka 'int'} [-Wsign-compare]
81 | if(bk[i+1].end()[-1].size() == r-mid){
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
minerals.cpp:45:7: warning: unused variable 'cnt' [-Wunused-variable]
45 | int cnt = 0;
| ^~~