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_16462615_10449.cpp:3:12: error: 'max' was not declared in this scope
 int father[max]; //father[x] 表示x的父结点
            ^
0_0_16462615_10449.cpp:4:10: error: 'max' was not declared in this scope
 int rank[max];   //rank[x]表示x的秩
          ^
0_0_16462615_10449.cpp: In function 'void make_set(int)':
0_0_16462615_10449.cpp:9:5: error: 'father' was not declared in this scope
     father[x] = x;
     ^
0_0_16462615_10449.cpp:10:5: error: 'rank' was not declared in this scope
     rank[x]   = 0;
     ^
0_0_16462615_10449.cpp: In function 'int find_set(int)':
0_0_16462615_10449.cpp:17:13: error: 'father' was not declared in this scope
     if(x != father[x])
             ^
0_0_16462615_10449.cpp:21:12: error: 'father' was not declared in this scope
     return father[x];
            ^
0_0_16462615_10449.cpp: At global scope:
0_0_16462615_10449.cpp:28:11: error: expected identifier before '(' token
 void union(int x,int y)
           ^
0_0_16462615_10449.cpp:28:12: error: expected unqualified-id before 'int'
 void union(int x,int y)
            ^
0_0_16462615_10449.cpp:28:12: error: expected ')' before 'int'


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-26 15:47:17, Gzip enabled