Easy Queue(QUEUEEZ) SPOJ

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 :slight_smile:

provide an ideone link , spoj link unaccesible, pls upvote(less karma)

1 Like

provide an ideone link , spoj link unaccesible, pls upvote(less karma)

1 Like

http://www.cplusplus.com/reference/deque/deque/max_size/
this might help

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.