F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-14 15:01:46, Gzip enabled