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