Anthony.cpp: In function 'void {anonymous}::dfs(int, int, int, int)':
Anthony.cpp:40:11: error: invalid types 'int[int]' for array subscript
40 | ret[idx[v[p]]]=(lst^seq[idx]);
| ^
Anthony.cpp:46:11: error: invalid types 'int[int]' for array subscript
46 | ret[idx[v[p]]]=(x==0?0:ret[idx[x]]])^1;
| ^
Anthony.cpp:46:34: error: invalid types 'int[int]' for array subscript
46 | ret[idx[v[p]]]=(x==0?0:ret[idx[x]]])^1;
| ^
Anthony.cpp:46:38: error: expected ')' before ']' token
46 | ret[idx[v[p]]]=(x==0?0:ret[idx[x]]])^1;
| ~ ^
| )
Anthony.cpp:47:29: error: invalid types 'int[int]' for array subscript
47 | dfs(v[p],x,x==0?0:ret[idx[x]]],1);
| ^
Anthony.cpp: In function 'std::vector<int> Mark(int, int, int, int, std::vector<int>, std::vector<int>)':
Anthony.cpp:67:12: error: too few arguments to function 'void {anonymous}::dfs(int, int, int, int)'
67 | dfs(0,0,0);
| ^
Anthony.cpp:33:6: note: declared here
33 | void dfs(int x,int fa,int lst,int idx){
| ^~~
Catherine.cpp: In function 'int Move(std::vector<int>)':
Catherine.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
24 | }
| ^