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_40084457_25867.cpp: In function 'void Find(int)':
0_0_40084457_25867.cpp:18:38: error: void value not ignored as it ought to be
   18 |         return x==fa[x]? x:fa[x]=Find(fa[x]);
      |                                  ~~~~^~~~~~~
0_0_40084457_25867.cpp: In function 'void Merge(int, int)':
0_0_40084457_25867.cpp:21:20: error: void value not ignored as it ought to be
   21 |         int fx=Find(x);
      |                ~~~~^~~
0_0_40084457_25867.cpp:22:20: error: void value not ignored as it ought to be
   22 |         int fy=Find(y);
      |                ~~~~^~~


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.001000(s) query 1, Server time : 2025-04-10 00:53:10, Gzip enabled