EOFError .... Can anybody tell me why Codechef IDE showing this error ? . I have wasted 2 hours on It but still cant find the solution

This is Input Format

and This is my Prog…
t=int(input())
for k in range(t):
n=int(input())
l1=list(map(int,input().split()))
min1=1
while(True):
if(min1 not in l1):
break
min1+=1
remaining=2n
sum1=0
num=min(l1)
while(min1>num):
count1=l1.count(num)
temp=int(remaining/(2
count1))
sum1=sum1+tempnum
remaining=remaining-temp
num+=1
sum1+=remaining
min1
print(sum1)

And If I check the Custom Input then It gives correct result. And I know that when you Run it you have to uncheck the custom input to get inputs of problem.

Thanks