minerals.cpp: In function 'void solve()':
minerals.cpp:9:20: error: 'print' was not declared in this scope; did you mean 'printf'?
9 | bool flag=true;print(v);
| ^~~~~
| printf
minerals.cpp:10:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0;i<v.size();i++)if(v[i].size()>=2)flag=false;
| ~^~~~~~~~~
minerals.cpp:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
minerals.cpp:22:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for(int j=sz+(v[i].size()+1)/2;j<sz+v[i].size();j++)a=Query(A[j]);
| ~^~~~~~~~~~~~~~~
minerals.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int j=sz;j<sz+(v[i].size()+1)/2;j++)a=Query(A[j]);
| ~^~~~~~~~~~~~~~~~~~~~~
minerals.cpp:31:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:66:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for(int i=0;i<v.size();i++)if(v[i].size())ans.push_back(v[i][0]);
| ~^~~~~~~~~