minerals.cpp: In function 'void findpar(std::vector<int>, int)':
minerals.cpp:24:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int i = 0; i < v.size(); ++i){
| ~~^~~~~~~~~~
minerals.cpp:36:21: warning: unused variable 'z' [-Wunused-variable]
36 | int z = Query(q.front() + 1);
| ^
minerals.cpp:41:27: 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.size(); ++i){
| ~~^~~~~~~~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:59:14: error: too few arguments to function 'void findpar(std::vector<int>, int)'
59 | findpar(v);
| ^
minerals.cpp:17:6: note: declared here
17 | void findpar(vector<int> v, int val){
| ^~~~~~~