Problem more_lca
User PlayVoltz
Submission Time 2024-04-30 09:39:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

more_lca.cpp: In function ‘void init(int, std::vector<int>)’:
more_lca.cpp:32:21: error: no match for ‘operator++’ (operand type is ‘std::vector<int>’)
32 | for (int i=1; i<n; ++p)graph[p[i]].pb(i);
| ^~~
more_lca.cpp:32:37: 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’
32 | for (int i=1; i<n; ++p)graph[p[i]].pb(i);
| ^~