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

×

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: http://www.spoj.com/submit/QUEUEEZ/id=19992365

Here's the Problem: http://www.spoj.com/problems/QUEUEEZ/

asked 18 Aug '17, 07:47

vishuvish's gravatar image

3★vishuvish
1
accept rate: 0%


Answer is hidden as author is suspended. Click here to view.

answered 18 Aug '17, 09:09

twinklebajaj's gravatar image

3★twinklebajaj
(suspended)
accept rate: 0%

Answer is hidden as author is suspended. Click here to view.

answered 18 Aug '17, 09:09

twinklebajaj's gravatar image

3★twinklebajaj
(suspended)
accept rate: 0%

Answer is hidden as author is suspended. Click here to view.

answered 18 Aug '17, 09:03

raj79's gravatar image

1★raj79
(suspended)
accept rate: 10%

Answer is hidden as author is suspended. Click here to view.

answered 18 Aug '17, 09:28

twinklebajaj's gravatar image

3★twinklebajaj
(suspended)
accept rate: 0%

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.

link

answered 18 Aug '17, 13:17

vijju123's gravatar image

4★vijju123 ♦♦
15.2k11860
accept rate: 18%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×18
×11
×1

question asked: 18 Aug '17, 07:47

question was seen: 387 times

last updated: 18 Aug '17, 13:17