PYTHON NZEC runtime error

I write the code in idle python 2.7.5 and when I write the same code here and selected python 2.7.13 it shows me NZEC runtime error. please help me someone.

T=int(input("Enter total no of tests taken - "))
for i in range (0,T):
c=[]
u=[]
N=int(input("Enter total no of elements - "))
for j in range (0,N):
elec = raw_input("enter A/B/C/D in correct list ")
c.append(elec)
eleu = raw_input("enter A/B/C/D/N in user list ")
u.append(eleu)
print "\n CORRECT LIST IS - ",©
print "\n USER LIST IS - ",(u)
m=0
count=0
while m<N :
if(c[m] == u[m]):
count=count+1
elif( u[m] == ‘N’):
count=count
elif(c[m] != u[m]):
count=count
m=m+1
m=m+1
print(count)

It will be helpful if you provide the problem link

1 Like

the input should match exactly as the given question!
T=int(input())
instead of
T=int(input("Enter total no of tests taken - "))

It will avoid a WA but NZEC errors are caused due to some other bugs. Generally, the modifications in output will fall under WA as when the output(correct) and output(generated) will not match. But NZEC error is a type of runtime error, which is caused when the online compiler encounters a sudden anomaly while running the code.

problem link then please?