when i try to compile this it returns the followed error: 1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(42): error C4716: 'minheapify' : must return a value 1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(58): error C4716: 'buildminheap' : must return a value 1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(74): error C4716: 'heapincp' : must return a value 1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(96): error C4716: 'min_heap_insert' : must return a value WHAT SHOULD I DO?? It will be very helpful if you respond and thanks a lot for the code
Thanks for your effort . But , I had the same issue.. " error C4716: 'buildminheap': must return a value " Could you please help!! what should me the return value of buildminheap !!
what is the use of below function:
ReplyDeleteheap_min(data a[])
int buildminheap()
heap_min returns the min element of the heap and buildminheap builds a min-heap
Deletewhats the usage of heapincp(data a[],int i,int ps)
Deleteheapincp attaches a node in the heap in proper order checking the priority of node
Deletewhen i try to compile this it returns the followed error:
ReplyDelete1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(42): error C4716: 'minheapify' : must return a value
1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(58): error C4716: 'buildminheap' : must return a value
1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(74): error C4716: 'heapincp' : must return a value
1>c:\users\admin\desktop\priority queue heap\priority queue heap\main.cpp(96): error C4716: 'min_heap_insert' : must return a value
WHAT SHOULD I DO?? It will be very helpful if you respond and thanks a lot for the code
I'd fixed those errors. You can try that now.
DeleteThanks for your effort . But , I had the same issue..
Delete" error C4716: 'buildminheap': must return a value "
Could you please help!!
what should me the return value of buildminheap !!
buildminheap don't need to return any value, it is just a function to do heap sort on the full array
Delete