longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:35:17: warning: variable 'r' set but not used [-Wunused-but-set-variable]
35 | int l=0,r=0;
| ^
longesttrip.cpp:60:19: warning: variable 'l1' set but not used [-Wunused-but-set-variable]
60 | int l0=0,r0=0,l1=1,r1=1;
| ^~
longesttrip.cpp:46:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
46 | if(i!=x){
| ^~
/usr/bin/ld: /tmp/ccrqySv6.o: in function `are_connected(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0xc0): multiple definition of `are_connected(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'; /tmp/ccRscy36.o:longesttrip.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status