longesttrip.cpp: In function 'int Search(int, std::vector<int>)':
longesttrip.cpp:14:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int i = 0;i < b.size() / 2;i++) v.push_back(b[i]);
| ~~^~~~~~~~~~~~~~
longesttrip.cpp:15:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for(int i = b.size() / 2;i < b.size();i++) v1.push_back(b[i]);
| ~~^~~~~~~~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:25:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
25 | while(ans.size() < N){
| ~~~~~~~~~~~^~~