minerals.cpp: In function 'void findpar(std::vector<int>)':
minerals.cpp:32:13: error: 'Query' was not declared in this scope
32 | Query(q.front()); p[q.front()] = 0;
| ^~~~~
minerals.cpp:37:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for (int i = 0; i < v.size(); ++i){
| ~~^~~~~~~~~~
minerals.cpp:38:17: error: 'Query' was not declared in this scope
38 | int x = Query(v[i]); q.push_back(v[i]); p[v[i]] = 1;
| ^~~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:57:9: error: 'Answer' was not declared in this scope
57 | Answer(sol[i].F + 1, sol[i].S + 1);
| ^~~~~~