Python 3 nzec error

Hi I started solving problem name = MARSWA
My code is
# cook your dish here
for _ in range(int(input())+1):
s1,s2,t1,t2 = map(int,input().split())
x = int(input())
if t2-t1 == 1:
diff = s2-s1
elif t2 -t1 ==2:
diff = (s2-s1)//3
print(diff*(1+2*(x*(x+1)//2)))
Can anyone explain why i am getting an error.

in this the question is asking that you are given t test case and you have to test for that many test case only but you have write for_in range(int(Input())+1) in this you will examine t+1 test cases i think that why you are getting error