You are not logged in. Please login at to post your questions!


Implementation of Dijkstra's Algorithm using set data structure in C++


I was trying to implement Dijkstra using set data structure in C++. I was coding in C++14 and there seems to be something out of order in the code for it is not giving me the right answer in Codechef IDE and on DevCpp it is not even compiling!

I believe the code is logically sound and there are only semantic errors in it.

Implementing Dijkstra using set in C++

This question is marked "community wiki".

asked 18 Jan, 11:36

alathedarkwiz's gravatar image

accept rate: 0%

Ignore this I have figured it out. (BTW, the code works. And is logically sound feel free to use it if needed.)


answered 18 Jan, 17:39

alathedarkwiz's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 18 Jan, 11:36

question was seen: 94 times

last updated: 18 Jan, 17:39