In file included from /usr/include/c++/10/random:49,
from longesttrip.cpp:2:
/usr/include/c++/10/bits/random.h: In instantiation of 'class std::uniform_real_distribution<int>':
longesttrip.cpp:65:34: required from here
/usr/include/c++/10/bits/random.h:1733:56: error: static assertion failed: result_type must be a floating point type
1733 | static_assert(std::is_floating_point<_RealType>::value,
| ^~~~~
longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:76:22: warning: narrowing conversion of 'a' from 'll' {aka 'long long int'} to 'int' [-Wnarrowing]
76 | if(are_connected({a},{i}))S.back().push_back(i);
| ^
longesttrip.cpp:76:22: warning: narrowing conversion of 'a' from 'll' {aka 'long long int'} to 'int' [-Wnarrowing]
longesttrip.cpp:90: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]
90 | if(are_connected({A.back()},{T[0]})){
| ~~~~~~^~
longesttrip.cpp:90: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:90: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]
90 | if(are_connected({A.back()},{T[0]})){
| ^
longesttrip.cpp:90: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:93: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]
93 | else if(are_connected({B.back()},{T[0]})){
| ~~~~~~^~
longesttrip.cpp:93: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:93: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]
93 | else if(are_connected({B.back()},{T[0]})){
| ^
longesttrip.cpp:93: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]
In file included from /usr/include/c++/10/random:49,
from longesttrip.cpp:2:
/usr/include/c++/10/bits/random.h: In instantiation of 'struct std::__detail::_Adaptor<std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, int>':
/usr/include/c++/10/bits/random.h:1858:6: required from 'std::uniform_real_distribution<_RealType>::result_type std::uniform_real_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&, const std::uniform_real_distribution<_RealType>::param_type&) [with _UniformRandomNumberGenerator = std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>; _RealType = int; std::uniform_real_distribution<_RealType>::result_type = int]'
/usr/include/c++/10/bits/random.h:1850:34: required from 'std::uniform_real_distribution<_RealType>::result_type std::uniform_real_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&) [with _UniformRandomNumberGenerator = std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>; _RealType = int; std::uniform_real_distribution<_RealType>::result_type = int]'
longesttrip.cpp:69:11: required from here
/usr/include/c++/10/bits/random.h:158:53: error: static assertion failed: template argument must be a floating point type
158 | static_assert(std::is_floating_point<_DInputType>::value,
| ^~~~~