longesttrip.cpp: In lambda function:
longesttrip.cpp:11:13: sorry, unimplemented: capture of variably-modified type 'int [N][N]' that is not an N3639 array of runtime bound
11 | if (adj[x][y] >= 0) return adj[x][y];
| ^~~
longesttrip.cpp:11:13: note: because the array element type 'int [N]' has variable size
longesttrip.cpp:11:36: sorry, unimplemented: capture of variably-modified type 'int [N][N]' that is not an N3639 array of runtime bound
11 | if (adj[x][y] >= 0) return adj[x][y];
| ^~~
longesttrip.cpp:11:36: note: because the array element type 'int [N]' has variable size
longesttrip.cpp:12:9: sorry, unimplemented: capture of variably-modified type 'int [N][N]' that is not an N3639 array of runtime bound
12 | adj[x][y] = adj[y][x] = are_connected({x}, {y});
| ^~~
longesttrip.cpp:12:9: note: because the array element type 'int [N]' has variable size
longesttrip.cpp:12:21: sorry, unimplemented: capture of variably-modified type 'int [N][N]' that is not an N3639 array of runtime bound
12 | adj[x][y] = adj[y][x] = are_connected({x}, {y});
| ^~~
longesttrip.cpp:12:21: note: because the array element type 'int [N]' has variable size
longesttrip.cpp:13:16: sorry, unimplemented: capture of variably-modified type 'int [N][N]' that is not an N3639 array of runtime bound
13 | return adj[x][y];
| ^~~
longesttrip.cpp:13:16: note: because the array element type 'int [N]' has variable size
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:16:24: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
16 | if (ans.size() == N) return ans;
| ~~~~~~~~~~~^~~~
longesttrip.cpp:30:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int j = 0; j < ans.size(); j++) {
| ~~^~~~~~~~~~~~