Spoj question-ROADS

Revision en1, by DOA, 2017-05-25 08:54:44

Guys I am unable to figure out why I am getting SIGSEGV error in my solution:(https://ideone.com/7ndJXG) while this solution is getting accepted:(https://ideone.com/k0Slqd) Question:(http://www.spoj.com/problems/ROADS/) Basically I am unable to find the difference between the working of both functions. Any help will be appreciated..

Tags spoj roads, roads

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English DOA 2017-05-25 08:54:44 356 Initial revision (published)