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

×

PALIN getting Run-Time error(NZEC)

I am submitting the solution for this problem in java and my code was running fine in the Eclipse IDE but why am I getting run time error here?Can please somebody explain? My soln:http://www.codechef.com/viewsolution/4137501

asked 03 Jul '14, 20:42

prerakd's gravatar image

3★prerakd
691316
accept rate: 0%

what is the error code?

(03 Jul '14, 22:18) amitt0012★

I code in C++. So, I can't tell you whats wrong with your code but I can tell you about NZEC error (Common in C++/Java)

So for Java : NZEC will usually mean that your program either crashed or raised an uncaught exception.

(03 Jul '14, 23:41) amitt0012★

I guess its mostly because you are allocating an int array of size 10^6 during runtime. Try global allocation or using char array instead.

Also your code gives wrong ans for input: 999

link

answered 03 Jul '14, 23:23

abbas's gravatar image

4★abbas
4118
accept rate: 28%

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,655
×1,313
×545
×433

question asked: 03 Jul '14, 20:42

question was seen: 1,844 times

last updated: 03 Jul '14, 23:41