Problem leenbeetree
User Henries
Submission Time 2024-12-16 14:30:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leenbeetree.cpp:6:10: error: variable or field ‘dfs’ declared void
6 | void dfs(ll u,ll p){
| ^~
leenbeetree.cpp:6:10: error: ‘ll’ was not declared in this scope
leenbeetree.cpp:6:15: error: ‘ll’ was not declared in this scope
6 | void dfs(ll u,ll p){
| ^~
leenbeetree.cpp: In function ‘int main()’:
leenbeetree.cpp:31:10: error: no match for ‘operator[]’ (operand types are ‘std::vector<long long int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, long long int> >, std::pair<bool, long long int> >::value_type’ {aka ‘std::pair<bool, long long int>’})
31 | counter[bees[i]] += 1;
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
fr