T = int(input())
count = 0
for i in range(T):
if(1<=T<=1000):
N = int(input())
a=list(map(int,input().split()))
a.sort()
for item in a:
if item==0:
count+=1
print(a)
for x in range(count):
a.pop(x)
for items in a:
if items<=count:
count+=1
else:
break
I am always getting NZEC error in most of my program codes. I have even tried to submit the solution of the problem from successful submission but I still get the same NZEC error.
Please provide a link to your solution. It is not easy to interpret your code in this form.