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_34398107_22883.cpp: In function 'void dfs(int)':
0_0_34398107_22883.cpp:26:5: error: 'dfn' was not declared in this scope
     dfn[u] = ++deep; id[deep] = u;
     ^
0_0_34398107_22883.cpp: In function 'int lca(int, int)':
0_0_34398107_22883.cpp:65:5: error: redefinition of 'int lca(int, int)'
 int lca(int u, int v) {
     ^
0_0_34398107_22883.cpp:36:5: note: 'int lca(int, int)' previously defined here
 int lca(int a, int b) {
     ^
0_0_34398107_22883.cpp:66:13: error: 'top' was not declared in this scope
     for ( ; top[u] != top[v]; u = fa[top[u]])
             ^
0_0_34398107_22883.cpp: In function 'void work()':
0_0_34398107_22883.cpp:82:56: error: 'dfn' was not declared in this scope
         for (ri i = 1; i <= A; ++i) read(a[i]), a[i] = dfn[a[i]];
                                                        ^
0_0_34398107_22883.cpp:84:56: error: 'dfn' was not declared in this scope
         for (ri i = 1; i <= B; ++i) read(b[i]), b[i] = dfn[b[i]];
                                                        ^


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-16 12:35:21, Gzip enabled