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_33292482_18912.cpp:9:54: error: expected initializer before 'dep'
 int L[N],si[N],dfn[N],rem[N],top[N],tree[N<<2],ans[N]dep[N],fa[N];
                                                      ^
0_0_33292482_18912.cpp: In function 'void dfs1(int)':
0_0_33292482_18912.cpp:19:12: error: 'dep' was not declared in this scope
         if(dep[g[p][q]]) continue;
            ^
0_0_33292482_18912.cpp:20:9: error: 'dep' was not declared in this scope
         dep[g[p][q]]=dep[p]+1;
         ^
0_0_33292482_18912.cpp:21:9: error: 'fa' was not declared in this scope
         fa[g[p][q]]=p;dfs1(g[p][q]);
         ^
0_0_33292482_18912.cpp: In function 'void dfs2(int)':
0_0_33292482_18912.cpp:26:12: error: 'fa' was not declared in this scope
 {   if(rem[fa[p]]==p) top[p]=top[fa[p]];
            ^
0_0_33292482_18912.cpp:31:21: error: 'fa' was not declared in this scope
         if(g[p][i]==fa[p]||g[p][i]==rem[p]) continue;
                     ^
0_0_33292482_18912.cpp: In function 'int sol(int)':
0_0_33292482_18912.cpp:51:11: error: 'fa' was not declared in this scope
         p=fa[top[p]];
           ^
0_0_33292482_18912.cpp: In function 'int main()':
0_0_33292482_18912.cpp:58:13: error: expected '}' at end of input
     cin >> T;
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-02-27 21:39:22, Gzip enabled