You are not logged in. Please login at 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:

asked 03 Jul '14, 20:42

prerakd's gravatar image

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


answered 03 Jul '14, 23:23

abbas's gravatar image

accept rate: 28%

toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

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


question asked: 03 Jul '14, 20:42

question was seen: 1,844 times

last updated: 03 Jul '14, 23:41