minerals.cpp: In function 'void findpar(std::vector<int>)':
minerals.cpp:30:21: error: 'query' was not declared in this scope
30 | int z = query(q.front()); p[q.front()] = 0;
| ^~~~~
minerals.cpp:30:17: warning: unused variable 'z' [-Wunused-variable]
30 | int z = query(q.front()); p[q.front()] = 0;
| ^
minerals.cpp:35:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < v.size(); ++i){
| ~~^~~~~~~~~~
minerals.cpp:36:17: error: 'query' was not declared in this scope
36 | int x = query(v[i]); q.push_back(v[i]); p[v[i]] = 1;
| ^~~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:54:9: error: 'answer' was not declared in this scope
54 | answer(sol[i].F + 1, sol[i].S + 1);
| ^~~~~~