beechtree.cpp: In function 'std::vector<int> beechtree(int, int, std::vector<int>, std::vector<int>)':
beechtree.cpp:24:43: error: expected '}' at end of input
24 | unordered_map<int, int> color_cnt; // Frequency of colo
| ^
beechtree.cpp:22:42: note: to match this '{'
22 | for (int root = 0; root < N; ++root) {
| ^
beechtree.cpp:24:43: error: expected '}' at end of input
24 | unordered_map<int, int> color_cnt; // Frequency of colo
| ^
beechtree.cpp:12:67: note: to match this '{'
12 | vector<int> beechtree(int N, int M, vector<int> P, vector<int> C) {
| ^
beechtree.cpp:24:43: warning: no return statement in function returning non-void [-Wreturn-type]
24 | unordered_map<int, int> color_cnt; // Frequency of colo
| ^