Problem gwynethandtree
User Sans12345
Submission Time 2023-03-11 11:36:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gwynethandtree.cpp: In function ‘void dfs_decomp(int)’:
gwynethandtree.cpp:43:22: error: no match for ‘operator[]’ (operand types are ‘int [100005]’ and ‘std::vector<int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’})
43 | ss[i]+=ss[it];
| ^