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_34192670_778.cpp: In function 'int findSet(int)':
0_0_34192670_778.cpp:16:11: error: 'parent' was not declared in this scope
  if (x == parent[x])
           ^
0_0_34192670_778.cpp:20:32: error: 'FindSet' was not declared in this scope
   parent[x] = FindSet(parent[x]); //父节点变为根节点,此时value[x]=父节点到根节点的权值
                                ^
0_0_34192670_778.cpp:21:3: error: 'value' was not declared in this scope
   value[x] += value[t]; //当前节点的权值加上原本父节点的权值
   ^
0_0_34192670_778.cpp:25:2: error: expected ';' before '}' token
  }
  ^
0_0_34192670_778.cpp: In function 'int main()':
0_0_34192670_778.cpp:36:23: error: 'findset' was not declared in this scope
    int aroot=findset(a);
                       ^


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 04:54:22, Gzip enabled