longesttrip.cpp: In function 'std::vector<int> go(ll, ll)':
longesttrip.cpp:15:22: 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 = 0; i < v2.sz; i++) v1.push_back(v2[i]);
| ^
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:35:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int i = 0; i < v2.sz; i++) v1.push_back(v2[i]); v2.clear();
| ^
longesttrip.cpp:35:21: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
35 | for(int i = 0; i < v2.sz; i++) v1.push_back(v2[i]); v2.clear();
| ^~~
longesttrip.cpp:35:73: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
35 | for(int i = 0; i < v2.sz; i++) v1.push_back(v2[i]); v2.clear();
| ^~
longesttrip.cpp:64:10: warning: unused variable 'both' [-Wunused-variable]
64 | bool both = are_connected(v1,v2);
| ^~~~