potion.cpp: In function 'int dist(std::vector<int>&, int, std::vector<int>&, int)':
potion.cpp:17:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while(ia<a.size()-1 || ib<b.size()-1){
| ~~^~~~~~~~~~~
potion.cpp:17:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while(ia<a.size()-1 || ib<b.size()-1){
| ~~^~~~~~~~~~~
potion.cpp:18:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if(ia==a.size()-1){
| ~~^~~~~~~~~~~~
potion.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | else if(ib==b.size()-1){
| ~~^~~~~~~~~~~~
potion.cpp: In function 'int question(int, int, int)':
potion.cpp:73:24: error: expected ')' before 'vs'
73 | return dist(vs[x],x vs[y], y);
| ~ ^~~
| )
potion.cpp:73:32: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'int'
73 | return dist(vs[x],x vs[y], y);
| ^
potion.cpp:10:48: note: in passing argument 3 of 'int dist(std::vector<int>&, int, std::vector<int>&, int)'
10 | int dist(vector<int>& a,int aid, vector<int>& b, int bid){
| ~~~~~~~~~~~~~^