I'm trying to solve this problem http://www.spoj.com/problems/ROADS/ but I'm getting SIGABRT error.Can somebody please tell me why I'm getting this error?Thanks in advance.
code removed