longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:37:35: error: could not convert 'sciezka[0].std::vector<int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
37 | if (are_connected(sciezka[0].back(),sciezka[1][0])){
| ~~~~~~~~~~~~~~~^~
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
longesttrip.cpp:44:35: error: could not convert 'sciezka[0].std::vector<int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
44 | if (are_connected(sciezka[0].back(),sciezka[1][0])){
| ~~~~~~~~~~~~~~~^~
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
longesttrip.cpp:51:35: error: could not convert 'sciezka[0].std::vector<int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
51 | if (are_connected(sciezka[0].back(),sciezka[1][0])){
| ~~~~~~~~~~~~~~~^~
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
longesttrip.cpp:58:35: error: could not convert 'sciezka[0].std::vector<int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'std::vector<int>'
58 | if (are_connected(sciezka[0].back(),sciezka[1][0])){
| ~~~~~~~~~~~~~~~^~
| |
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}