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;
^
|