I have tried scanner.in as well as BufferedReader but still I am getting this NZEC. The code is executing nicely on my local PC. I am not getting the point of this error. What could be the reason. I am really frustrated.
In Python3.4 I used input().rstrip().split(’ ') but still I am getting this error
i am getting NZEC error in a java code .but how can i fix it
Dear friends i am new to c programming, i am face the problem for (Add Two Numbers Program) kindly tell me where i did the mistake?
#include <stdio.h>
void main()
{
int a,b,res;
printf(“Enter any 2 number”);
scanf("%d%d",&a,&b);
res=a+b;
printf(“You are Enter %d\n , %d\n the result is %d=”,a,b,res);
return 0;
}
I get the same error in my add two numbers program.The below program is very correct but I get NZSEC error.Please help me and will solve others problem too.
t=int(input())
c=[]
if t>=1 and t<=1000:
for i in range(t):
a=int(input())
b=int(input())
if a>=1 and b>=1:
if a<=10000 and b<=10000:
c.append(a+b)
for i in range(t):
print(c[i])
I am getting this error. I have tried this code for many sample input. However, it is showing NZEC error when i try submitting the code.
MY CODE :
Same here, i think server issue? Please help admin,everyone got nzec for every code
I also think there is a problem with the IDE Practice Problem,
Submitting solutions that have previously worked with AC are now returning a NZEC (I have been testing out the August Long Competition). If anyone can confirm for other problems or the same set, that would be nice. Admins, please clarify the problem!
just look around at any problem all the latest java submission at any problem get NZEC I even copy pasted my earlier successful submission for a problem and it got NZEC.
Why my karma is -1 i am not able ask question,this is serious matter please notify to codechef getting dissapointed after getting nzec
check for run time exceptions
for this problem https://www.codechef.com/problems/TEST
I am getting runtime error and here is my program python
l=[]
t = “”
s = “”
while True:
num=raw_input()
if num.strip()==s:
break
l.append(int(num))
for x in l:
if x==42:
break
print x
use this to put in arrays
array= [int(i) for i in input().split()]
I always get a runtimr error(NZEC). I don’t know why ?
please help.
I’m getting NZEC for the simplest C# code as well? Any suggestions?
If you can show us your code, we might help better!
But still, for basics, try and read codechef guidelines and FAQ in case they have some sort of syntax for your language.
Check if your code has a return 0 or not.
Its actually tough to tell the reason of error w/o seeing code for me, but I hope the above helps
I am using python and am getting the same errors, NZEC.
I tried using custom input on the editor and it works fine(even if I add extra spaces or something on the end of the lines), but when I uncheck it, it returns to the NZEC error. I think the error may be within the input given by the server and not on the codes.
I wish that some admins can check for errors on it. As, if this error occurs upon multiple languages, then it is a grave one.
I just also had an NZEC
at XENTASK using python 3. I used python 3’s input()
, selecting pypy
as programming language and #! python3
as first code line. This worked before at other tasks, but seems to be the problem at XENTASK. Solved it by simply selecting py 3
as programming language, and it worked fine.
So if you use python 3, that might do the trick.
I am getting NZEC error for this code:
/* package whatever; // don’t place package name! */
import java.util.;
import java.lang.;
import java.io.*;
/* Name of the class has to be “Main” only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int t,n ;
t = sc.nextInt();
int i;
while(t-->0)
{
n = sc.nextInt();
int c = 1;
while(n!=1){
for(i=n-1;i>=1;i--)
{
if(n%i==0)
{
c++;
n = n - i;
break;
}
}
}
if(c%2==0){
System.out.println("ROHIT");
}
else{
System.out.println("VISHAL");
}
}
}
}
how do i solve this?
it works fine on ideone but while submitting on codechef i get this runtime error…
Please help me…