minerals.cpp: In function 'void solve()':
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:17:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int j=sz+(v[i].size()+1)/2;j<sz+v[i].size();j++)Query(A[j]);
| ~^~~~~~~~~~~~~~~
minerals.cpp:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int j=sz;j<sz+(v[i].size()+1)/2;j++)Query(A[j]);
| ~^~~~~~~~~~~~~~~~~~~~~
minerals.cpp:26:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
minerals.cpp: In function 'void Solve(int)':
minerals.cpp:56:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int i=0;i<v.size();i++)if(v[i].size())ans.push_back(v[i][0]);
| ~^~~~~~~~~