minerals.cpp:5:6: error: variable or field 'func' declared void
5 | void func(vector<int> v, bool ok){
| ^~~~
minerals.cpp:5:11: error: 'vector' was not declared in this scope
5 | void func(vector<int> v, bool ok){
| ^~~~~~
minerals.cpp:5:18: error: expected primary-expression before 'int'
5 | void func(vector<int> v, bool ok){
| ^~~
minerals.cpp:5:26: error: expected primary-expression before 'bool'
5 | void func(vector<int> v, bool ok){
| ^~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:87:26: error: 'Query' was not declared in this scope
87 | int nw = Query(i);
| ^~~~~
minerals.cpp:92:9: error: 'vector' was not declared in this scope
92 | vector<int> v;
| ^~~~~~
minerals.cpp:92:16: error: expected primary-expression before 'int'
92 | vector<int> v;
| ^~~
minerals.cpp:94:17: error: 'v' was not declared in this scope
94 | v.push_back(i);
| ^
minerals.cpp:96:14: error: 'v' was not declared in this scope
96 | func(v, 1);
| ^
minerals.cpp:96:9: error: 'func' was not declared in this scope
96 | func(v, 1);
| ^~~~