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_34157147_19757.cpp: In function 'void find_set(int)':
0_0_34157147_19757.cpp:13:23: error: void value not ignored as it ought to be
     if(x != s[x])s[x] = find_set(s[x]);
                       ^
0_0_34157147_19757.cpp:14:15: error: return-statement with a value, in function returning 'void' [-fpermissive]
     return s[x];
               ^
0_0_34157147_19757.cpp: In function 'void union_set(int, int)':
0_0_34157147_19757.cpp:17:7: error: void value not ignored as it ought to be
     x = find_set(x);
       ^
0_0_34157147_19757.cpp:18:7: error: void value not ignored as it ought to be
     y = find_set(y);
       ^


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-07-06 04:56:36, Gzip enabled