Category : uncaught-exception

I am getting this error "libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: vector" for my heapifyDown() I believe. This is the cpp for my priorityqueue. I call heapifyDown() in my removeMin() so I made some changes there but my heapifyDown() seems fine to me. Can anyone help me troubleshoot this? #include <iostream> #include "json.hpp" ..

Read more