I wrote the exact code but its giving some unusual error.Please correct the code and tell me what mistakes have i made
code is correct
the problem is with typedef
using this you are not allowed to make priority queue of node
instead you can use #define it will work
look at modified Code
Modified Code
if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with
and don’t forgot to mark doubt as resolved
1 Like