I have used STL in cpp. But I’m confused why it is giving a Segmentation Error(SIGSEGV).
Here’s my Code Link:
Here’s the Problem:
I have used STL in cpp. But I’m confused why it is giving a Segmentation Error(SIGSEGV).
Here’s my Code Link:
Here’s the Problem:
pls provide a code link , we cannot access the spoj code link of yours
provide an ideone link , spoj link unaccesible, pls upvote(less karma)
provide an ideone link , spoj link unaccesible, pls upvote(less karma)
Check for string or array out of bound exception. If you are using STL like priority queue, make sure they are non-empty before you do a operation on them. Eg-Accessing “top” element of a empty queue gives runtime error.