minerals.cpp: In function 'void Solve(int)':
minerals.cpp:26:29: error: no matching function for call to 'shuffle(std::vector<int>::iterator, std::vector<int>::iterator)'
26 | shuffle(vv.begin(),vv.end());
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from minerals.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3748:5: note: candidate: 'template<class _RAIter, class _UGenerator> void std::shuffle(_RAIter, _RAIter, _UGenerator&&)'
3748 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~~~~
/usr/include/c++/10/bits/stl_algo.h:3748:5: note: template argument deduction/substitution failed:
minerals.cpp:26:29: note: candidate expects 3 arguments, 2 provided
26 | shuffle(vv.begin(),vv.end());
| ^
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:45:7: warning: unused variable 'cnt' [-Wunused-variable]
45 | int cnt = 0;
| ^~~