tree.cpp: In function 'void init(std::vector<int>, std::vector<int>)':
tree.cpp:20:13: error: request for member 'push_back' in 'g.std::vector<int>::operator[](((std::vector<int>::size_type)p.std::vector<int>::operator[](((std::vector<int>::size_type)i))))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
20 | g[p[i]].push_back(i);
| ^~~~~~~~~
tree.cpp:24:14: error: request for member 'empty' in 'g.std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
24 | if (g[i].empty())
| ^~~~~