longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:22:8: error: 'class std::vector<int>' has no member named 'pb'
22 | ans.pb(i);
| ^~
longesttrip.cpp:24:3: error: 'vll' was not declared in this scope; did you mean 'vpl'?
24 | vll order={0};
| ^~~
| vpl
longesttrip.cpp:31:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
31 | bool r1=are_connected({s},{f1});
| ^
longesttrip.cpp:31:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:31:31: warning: narrowing conversion of 'f1' from 'long long int' to 'int' [-Wnarrowing]
31 | bool r1=are_connected({s},{f1});
| ^~
longesttrip.cpp:31:31: warning: narrowing conversion of 'f1' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:32:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
32 | bool r2=are_connected({s},{f2});
| ^
longesttrip.cpp:32:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:32:31: warning: narrowing conversion of 'f2' from 'long long int' to 'int' [-Wnarrowing]
32 | bool r2=are_connected({s},{f2});
| ^~
longesttrip.cpp:32:31: warning: narrowing conversion of 'f2' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:33:27: warning: narrowing conversion of 'f1' from 'long long int' to 'int' [-Wnarrowing]
33 | bool r3=are_connected({f1},{f2});
| ^~
longesttrip.cpp:33:27: warning: narrowing conversion of 'f1' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:33:32: warning: narrowing conversion of 'f2' from 'long long int' to 'int' [-Wnarrowing]
33 | bool r3=are_connected({f1},{f2});
| ^~
longesttrip.cpp:33:32: warning: narrowing conversion of 'f2' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:36:5: error: 'order' was not declared in this scope
36 | order.pb(f1);
| ^~~~~
longesttrip.cpp:41:5: error: 'order' was not declared in this scope
41 | order.pb(f2);
| ^~~~~
longesttrip.cpp:44:6: error: 'order' was not declared in this scope
44 | s=order.back();
| ^~~~~
longesttrip.cpp:49:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
49 | bool r1=are_connected({s},{l});
| ^
longesttrip.cpp:49:27: warning: narrowing conversion of 's' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:49:31: warning: narrowing conversion of 'l' from 'long long int' to 'int' [-Wnarrowing]
49 | bool r1=are_connected({s},{l});
| ^
longesttrip.cpp:49:31: warning: narrowing conversion of 'l' from 'long long int' to 'int' [-Wnarrowing]
longesttrip.cpp:51:5: error: 'order' was not declared in this scope
51 | order.pb(l);
| ^~~~~
longesttrip.cpp:53:10: error: 'order' was not declared in this scope
53 | return order;
| ^~~~~