Issue with the problem REMONE in Starters

So in the question REMONE in Codechef Starters 10, rated for Div. 2 and Div. 3, the problem statement had mentioned X > 0. However, I was constantly receiving a WA on Test Case 2 with my code which did not take into account the case of X = 0 as it should. I later changed my code to handle this case and received an AC on all test cases.

My submission with X > 0
My submission with X >=10
Problem Link

Am I the one who misread it or was the problem framed erroneously?

You misread it. It clearly says he adds a positive integer and gives the array to you.