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_21880792_4884.cpp: In function 'void process()':
0_0_21880792_4884.cpp:24:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         n1=Find(A,n1);
                     ^
0_0_21880792_4884.cpp:24:21: error: too many arguments to function 'int Find(int)'
0_0_21880792_4884.cpp:9:5: note: declared here
 int Find(int element);
     ^
0_0_21880792_4884.cpp:25:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         n2=Find(A,n2);
                     ^
0_0_21880792_4884.cpp:25:21: error: too many arguments to function 'int Find(int)'
0_0_21880792_4884.cpp:9:5: note: declared here
 int Find(int element);
     ^
0_0_21880792_4884.cpp:26:25: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         SetUnion(A,n1,n2);
                         ^
0_0_21880792_4884.cpp:26:25: error: too many arguments to function 'void SetUnion(int, int)'
0_0_21880792_4884.cpp:7:6: note: declared here
 void SetUnion(int root1,int root2);
      ^


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-17 13:57:25, Gzip enabled