Help me with Recover Sequence problem

This is my first problem I am trying to solve but getting some problem please help me

https://www.codechef.com/viewsolution/24397404
this is the link to my solution dont know why is it not getting accepted
please help me thankyou

also getting a EOF error dont know what that means

bro try to read the constraints first…it says that the size of list can be 100000…you have only written code for 5 numbers.

thanks bro
i submitted it successfully
but it is still giving the EOF error what does it mean

well it is my solution
https://www.codechef.com/viewsolution/24397725

your solution is right…it gave right answer

EOF error is generated when you put input() where it is not needed

thanks bro
but i need here to get input from the user