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_39837644_216.cpp:9:10: error: expected constructor, destructor, or type conversion before '(' token
    9 | merge_set(x,y){
      |          ^
0_0_39837644_216.cpp: In function 'int main()':
0_0_39837644_216.cpp:26:22: error: 'A' was not declared in this scope
   26 |                 cin>>A>>B;
      |                      ^
0_0_39837644_216.cpp:26:25: error: 'B' was not declared in this scope
   26 |                 cin>>A>>B;
      |                         ^
0_0_39837644_216.cpp:27:17: error: 'merge_set' was not declared in this scope
   27 |                 merge_set(A,B);
      |                 ^~~~~~~~~
0_0_39837644_216.cpp:30:13: error: 'i' was not declared in this scope
   30 |         for(i=1;i<=n;i++)
      |             ^
0_0_39837644_216.cpp:35:13: error: 'count' was not declared in this scope
   35 |             count<<result<<end1;
      |             ^~~~~
0_0_39837644_216.cpp:35:28: error: 'end1' was not declared in this scope
   35 |             count<<result<<end1;
      |                            ^~~~


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-01-10 21:44:07, Gzip enabled