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_26040582_24322.cpp: In function 'void dfsDP(int)':
0_0_26040582_24322.cpp:43:16: error: 'head' was not declared in this scope
     for (int i=head[x]; i; i=e[i].nxt){
                ^
0_0_26040582_24322.cpp:43:30: error: 'e' was not declared in this scope
     for (int i=head[x]; i; i=e[i].nxt){
                              ^
0_0_26040582_24322.cpp: In function 'void solve(int)':
0_0_26040582_24322.cpp:57:75: error: 'addEdge' was not declared in this scope
     for (int i=2; i<=n; i++) scanf("%d", &father[i]), addEdge(father[i], 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-25 04:08:15, Gzip enabled