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

×

segmentation error in compiler and parsers

my code is giving correct output on ideone but when submitting here it says Runtime error(SIGSEGV)..please can anyone help!

asked 12 May '14, 00:38

preetiin90's gravatar image

2★preetiin90
61
accept rate: 0%


It is happening because you might be accessing some part of memory which is not available to you.
For example, you may be accessing some element of array which is actually not there.
Suppose you have declared an array a[100] and you are trying to access element a[101] in your program.

link

answered 12 May '14, 02:04

rohanj2507's gravatar image

2★rohanj2507
26
accept rate: 100%

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:

×2,351

question asked: 12 May '14, 00:38

question was seen: 989 times

last updated: 12 May '14, 02:04