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_39762326_12749.cpp:5:13: error: expected ']' before ';' token
    5 | int height[N;
      |             ^
      |             ]
0_0_39762326_12749.cpp: In function 'void init_set()':
0_0_39762326_12749.cpp:9:17: error: 'height' was not declared in this scope
    9 |                 height[i]=0;
      |                 ^~~~~~
0_0_39762326_12749.cpp: In function 'void merget_set(int, int)':
0_0_39762326_12749.cpp:17:12: error: 'height' was not declared in this scope
   17 |         if(height[x]==height[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-30 05:39:01, Gzip enabled