longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:64:22: warning: narrowing conversion of 'a' from 'll' {aka 'long long int'} to 'int' [-Wnarrowing]
64 | if(are_connected({a},{i}))S.back().push_back(i);
| ^
longesttrip.cpp:64:22: warning: narrowing conversion of 'a' from 'll' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:76:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for(int i=2;i<S.size();i++){
| ~^~~~~~~~~
longesttrip.cpp:78:29: warning: narrowing conversion of 'A.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
78 | if(are_connected({A.back()},{T[0]})){
| ~~~~~~^~
longesttrip.cpp:78:29: warning: narrowing conversion of 'A.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:78:39: warning: narrowing conversion of 'T.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
78 | if(are_connected({A.back()},{T[0]})){
| ^
longesttrip.cpp:78:39: warning: narrowing conversion of 'T.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:81:34: warning: narrowing conversion of 'B.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
81 | else if(are_connected({B.back()},{T[0]})){
| ~~~~~~^~
longesttrip.cpp:81:34: warning: narrowing conversion of 'B.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:81:44: warning: narrowing conversion of 'T.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
81 | else if(are_connected({B.back()},{T[0]})){
| ^
longesttrip.cpp:81:44: warning: narrowing conversion of 'T.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:91:21: error: could not convert 'A' from 'vector<long long int>' to 'vector<int>'
91 | if(are_connected(A,B)){
| ^
| |
| vector<long long int>
longesttrip.cpp:92:35: warning: narrowing conversion of 'A.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
92 | if(are_connected({A[0]},{B[0]})){
| ^
longesttrip.cpp:92:35: warning: narrowing conversion of 'A.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:92:35: warning: narrowing conversion of 'B.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:92:35: warning: narrowing conversion of 'B.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:97:44: warning: narrowing conversion of 'A.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
97 | else if(are_connected({A[0]},{B.back()})){
| ^
longesttrip.cpp:97:44: warning: narrowing conversion of 'A.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:97:41: warning: narrowing conversion of 'B.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
97 | else if(are_connected({A[0]},{B.back()})){
| ~~~~~~^~
longesttrip.cpp:97:41: warning: narrowing conversion of 'B.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:101:34: warning: narrowing conversion of 'A.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
101 | else if(are_connected({A.back()},{B[0]}){
| ~~~~~~^~
longesttrip.cpp:101:34: warning: narrowing conversion of 'A.std::vector<long long int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:101:44: warning: narrowing conversion of 'B.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
101 | else if(are_connected({A.back()},{B[0]}){
| ^
longesttrip.cpp:101:44: warning: narrowing conversion of 'B.std::vector<long long int>::operator[](0)' from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:101:45: error: expected ')' before '{' token
101 | else if(are_connected({A.back()},{B[0]}){
| ~ ^
| )
longesttrip.cpp:138:4: error: expected primary-expression before '}' token
138 | }
| ^