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_20739914_25881.c: In function 'merge':
0_0_20739914_25881.c:28:21: error: expected ']' before 'left_child'
     if( heap[heap[a]left_child].rank < heap[heap[a].right_child].rank )
                     ^
0_0_20739914_25881.c:28:13: error: array subscript is not an integer
     if( heap[heap[a]left_child].rank < heap[heap[a].right_child].rank )
             ^
0_0_20739914_25881.c:29:24: error: expected ')' before 'left_child'
         swap( &(heap[a]left_child), &(heap[a].right_child));
                        ^
0_0_20739914_25881.c: In function 'pop':
0_0_20739914_25881.c:39:13: error: incompatible types when initializing type 'int' using type 'struct leftist_tree'
     int l = heap[a]left_child;
             ^
0_0_20739914_25881.c:39:20: error: expected ',' or ';' before 'left_child'
     int l = heap[a]left_child;
                    ^
0_0_20739914_25881.c:43:12: error: expected ';' before 'left_child'
     heap[a]left_child = heap[a].right_child = heap[a].rank = 0;
            ^
0_0_20739914_25881.c: In function 'main':
0_0_20739914_25881.c:73:20: error: expected ';' before 'left_child'
             heap[i]left_child = heap[i].right_child = heap[i].rank = 0;
                    ^


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-12-29 08:57:30, Gzip enabled