0_0_39365367_30310.cpp: In function 'void solve()':
0_0_39365367_30310.cpp:58:29: error: no match for 'operator[]' (operand types are 'long long int [10005]' and '__gnu_cxx::__alloc_traits<std::allocator<node>, node>::value_type' {aka 'node'})
58 | cout<<double((ans+dp[e[1][e[1].size()-1]])*1.0/(n*(n-1)/2))<<'\n';
| ^
|