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_39462897_3656.cpp: In function 'void merge(int, int)':
0_0_39462897_3656.cpp:27:9: error: declaration of 'int x' shadows a parameter
   27 |     int x = getfa(x), y = getfa(y);
      |         ^
0_0_39462897_3656.cpp:26:23: note: 'int x' previously declared here
   26 | inline void merge(int x, int y) {
      |                   ~~~~^
0_0_39462897_3656.cpp:27:23: error: declaration of 'int y' shadows a parameter
   27 |     int x = getfa(x), y = getfa(y);
      |                       ^
0_0_39462897_3656.cpp:26:30: note: 'int y' previously declared here
   26 | inline void merge(int x, int 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-11-15 00:37:45, Gzip enabled