longesttrip.cpp: In function 'void dfs(int)':
longesttrip.cpp:18:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
18 | if (path.size() == n) {
| ~~~~~~~~~~~~^~~~
longesttrip.cpp:39:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
39 | if (path.size() == n) return;
| ~~~~~~~~~~~~^~~~
longesttrip.cpp:41:21: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
41 | if (path.size() == n) return;
| ~~~~~~~~~~~~^~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:67:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
67 | if (path.size() == n) return path;
| ~~~~~~~~~~~~^~~~
longesttrip.cpp:57:9: warning: unused variable 'start' [-Wunused-variable]
57 | int start = 0;
| ^~~~~