beechtree.cpp: In function 'int get(int, int)':
beechtree.cpp:22:22: error: 'vs' was not declared in this scope; did you mean 'v'?
22 | if (!vs[v]&&v!=p) sz[u]+=get(v,u);
| ^~
| v
beechtree.cpp: In function 'int find(int, int, int)':
beechtree.cpp:28:22: error: 'vs' was not declared in this scope; did you mean 'v'?
28 | if (!vs[v]&&v!=p&&sz[v]*2>=s) return find(v,s,u);
| ^~
| v
beechtree.cpp: In function 'void nai(int)':
beechtree.cpp:51:9: error: 'vs' was not declared in this scope
51 | vs[c]=1;
| ^~
beechtree.cpp: At global scope:
beechtree.cpp:63:4: error: structured binding declaration cannot have type 'int'
63 | int[] beechtree(int n,int m,int[] p,int[] c){
| ^~
beechtree.cpp:63:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
beechtree.cpp:63:4: error: empty structured binding declaration
beechtree.cpp:63:7: error: expected initializer before 'beechtree'
63 | int[] beechtree(int n,int m,int[] p,int[] c){
| ^~~~~~~~~