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

×

Why do I get an NZEC?

1
3

Why m i getting NZEC (Non Zero Exit Code) for my program?

asked 20 Mar '13, 17:37

tojochacko's gravatar image

1★tojochacko ♦
540101924
accept rate: 42%


123456next »

NZEC stands for Non Zero Exit Code. For C users, this will be generated if your main method does not have a return 0; statement. Other languages like Java/C++ could generate this error if they throw an exception.

link

answered 20 Mar '13, 17:38

admin's gravatar image

0★admin ♦♦
14.3k347483501
accept rate: 36%

This might help.

link

answered 30 Mar '16, 18:39

sahil_g's gravatar image

3★sahil_g
(suspended)
accept rate: 20%

Why am i getting this error in python???

link

answered 21 Apr '13, 00:22

sonuk7's gravatar image

2★sonuk7
112
accept rate: 0%

how to resolve this If I am using Python??

link

answered 13 Nov '14, 23:27

anupam02's gravatar image

2★anupam02
11
accept rate: 0%

Why I am getting NZEC error while using BufferedReader Input in JAVA for my solution??(while scanner type input is accepted)

link
This answer is marked "community wiki".

answered 02 Jan '15, 02:08

the_darklord's gravatar image

3★the_darklord
1
accept rate: 0%

Can anyone check why am I getting NZEC in java.. I have done everything possible after searching this whole Forum.. https://www.codechef.com/viewsolution/13196898

link

answered 02 Apr, 15:10

lightyaer's gravatar image

0★lightyaer
11
accept rate: 0%

Try using raw_input() to take input instead of input() because sometimes it happens that a space is left at the end of input which results in RunTimeerror.

link

answered 14 Nov '14, 11:14

shubham_coder's gravatar image

3★shubham_coder
284
accept rate: 7%

I tried using raw_input() but still alt text

I'm new to these coding contests, bear me.

link

answered 13 Dec '14, 13:29

karnikamit's gravatar image

1★karnikamit
1
accept rate: 0%

edited 13 Dec '14, 13:30

getting NZEC for my java code, anyone any suggestions on how to make it work ?

link

answered 28 Dec '14, 12:13

sknash's gravatar image

1★sknash
1
accept rate: 0%

check for run time exceptions

(12 Oct '16, 16:02) smsubham3★

If you are using raw_input().split(' ') it may cause nzec because in test cases, there are usually extra spaces at the end. try raw_input().split() and nzec will not come.

link

answered 28 Dec '14, 13:59

brobear1995's gravatar image

2★brobear1995
1561511
accept rate: 0%

toggle 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

Tags:

×269
×160

Asked: 20 Mar '13, 17:37

Seen: 40,623 times

Last updated: 5 hours ago