0_0_37728015_27123.cpp:9:22: error: expected unqualified-id before '[' token
int son[N],sz[N],siz,[N],cnt,R[N],L[N];
^
0_0_37728015_27123.cpp: In function 'int dfs(int, int)':
0_0_37728015_27123.cpp:14:10: error: 'p' was not declared in this scope
sz[u]=1;p[u]=pa;
^
0_0_37728015_27123.cpp: In function 'void hld(int, int, int)':
0_0_37728015_27123.cpp:40:2: error: 'L' was not declared in this scope
L[u]=++cnt;tp[u]=top;
^
0_0_37728015_27123.cpp:40:9: error: 'cnt' was not declared in this scope
L[u]=++cnt;tp[u]=top;
^
0_0_37728015_27123.cpp:41:20: error: 'R' was not declared in this scope
if(!son[u])return R[u]=cnt,void();else hld(son[u],u,top);
^
0_0_37728015_27123.cpp:41:34: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(!son[u])return R[u]=cnt,void();else hld(son[u],u,top);
^
0_0_37728015_27123.cpp:43:2: error: 'R' was not declared in this scope
R[u]=cnt;
^
0_0_37728015_27123.cpp: In function 'void lift(int, std::function<void(int, int, int)>)':
0_0_37728015_27123.cpp:57:18: error: 'p' was not declared in this scope
for(;tp[a]!=1;a=p[tp[a]]){
^
0_0_37728015_27123.cpp:58:5: error: 'L' was not declared in this scope
x=L[tp[a]];
^
0_0_37728015_27123.cpp:62:8: error: 'L' was not declared in this scope
x=1,y=L[a],F(1,n,1);
^
0_0_37728015_27123.cpp: In function 'int main()':
0_0_37728015_27123.cpp:68:25: error: 'cnt' was not declared in this scope
for(scanf("%d",&T);T--;cnt=t=0,M(nxt),M(h),M(son)){
^
0_0_37728015_27123.cpp:76:46: error: 'L' was not declared in this scope
for(i=1;i<=c;i++)scanf("%d",&C[i]),mk=2,x=L[C[i]],y=R[C[i]],mdf(1,n,1);
^
0_0_37728015_27123.cpp:76:56: error: 'R' was not declared in this scope
for(i=1;i<=c;i++)scanf("%d",&C[i]),mk=2,x=L[C[i]],y=R[C[i]],mdf(1,n,1);
^
0_0_37728015_27123.cpp:79:23: error: 'L' was not declared in this scope
for(i=1;i<=c;i++)x=L[C[i]],y=R[C[i]],down(1,n,1);
^
0_0_37728015_27123.cpp:79:33: error: 'R' was not declared in this scope
for(i=1;i<=c;i++)x=L[C[i]],y=R[C[i]],down(1,n,1);
^
|