minerals.cpp: In function 'void solv(std::vector<int>, std::vector<int>, int, int)':
minerals.cpp:13:5: error: expected initializer before 'int'
13 | int mid=(sz/2);
| ^~~
minerals.cpp:14:19: error: 'mid' was not declared in this scope
14 | for(int i=0;i<mid;i++) ret=Query(v1[i]), v11.push_back(v1[i]);
| ^~~
minerals.cpp:15:15: error: 'mid' was not declared in this scope
15 | for(int i=mid;i<sz;i++) v12.push_back(v2[i]);
| ^~~
minerals.cpp:19:24: error: 'v22' was not declared in this scope; did you mean 'v21'?
19 | if(in1==1) v22.push_back(v2[i]);
| ^~~
| v21
minerals.cpp:24:18: error: 'v22' was not declared in this scope; did you mean 'v21'?
24 | else v22.push_back(v2[i]);
| ^~~
| v21
minerals.cpp:29:15: error: 'v22' was not declared in this scope; did you mean 'v21'?
29 | solv(v12, v22, in1, 1-in2);
| ^~~
| v21