@cire.. I have already stated instructions above
and i want to add to that,that number of elements in input1 is equal to number of elements in input2.
@Aceix
I guess they are using some background code of their own and that's why they have used it.
check out if they are using a sentinel.
By the way, main must return int.