Help me in solving SESO16 problem

My issue

I dont know why my code is throwing a runtime error saying “File “/mnt/sol.py”, line 12, in
n = int(input()) # Input number of elements directly”
but there is no line 12 in the code even the code has been finished at line 10.

My code

t=int(input())
arr=list(map(int,input().split()))
n=len(arr)

for j in range(n-1):
    for k in range(n-j-1):
        if(arr[k+1]<arr[k]):
            arr[k],arr[k+1]=arr[k+1],arr[k]

print( ' '.join(map(str, arr)))

Learning course: Design and analysis of Algorithms
Problem Link: https://www.codechef.com/learn/course/abesit-daa/ABESITDA18/problems/SESO16