Problem supertrees
User PlayVoltz
Submission Time 2024-07-25 12:46:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supertrees.cpp: In function ‘int fp(int, int)’:
supertrees.cpp:9:31: error: too few arguments to function ‘int fp(int, int)’
9 | return dsu[t][a]=fp(dsu[t][a]);
| ^
supertrees.cpp:7:5: note: declared here
7 | int fp(int a, int t){
| ^~
supertrees.cpp: In function ‘int construct(std::vector<std::vector<int> >)’:
supertrees.cpp:28:40: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘class std::vector<int>’} has no member named ‘pb’
28 | for (int i=0; i<n; ++i)temp[fp(i, 1)].pb(i);
| ^~