minerals.cpp: In function 'void solve(std::vector<int>, bool)':
minerals.cpp:16:17: warning: unused variable 'aa' [-Wunused-variable]
16 | int aa=query(need[0]);
| ^~
minerals.cpp:17:17: warning: unused variable 'bb' [-Wunused-variable]
17 | int bb=query(need[1]);
| ^~
minerals.cpp:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i=0;i<need.size();i++)
| ~^~~~~~~~~~~~
minerals.cpp:33:26: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
33 | if (aa.size()==2*rr)
| ~~~~~~~~~^~~~~~
minerals.cpp:46:21: warning: unused variable 'a2' [-Wunused-variable]
46 | int a2=query(need[i]);
| ^~
minerals.cpp:55:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for (int i=rr;i<need.size();i++)
| ~^~~~~~~~~~~~
minerals.cpp:57:17: warning: unused variable 'a1' [-Wunused-variable]
57 | int a1=query(need[i]);
| ^~
minerals.cpp:63:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i=rr;i<need.size();i++)
| ~^~~~~~~~~~~~
minerals.cpp:65:26: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
65 | if (aa.size()==2*rr)
| ~~~~~~~~~^~~~~~
minerals.cpp:77:21: warning: unused variable 'a2' [-Wunused-variable]
77 | int a2=query(need[i]);
| ^~