You need to print each output ( expressions in RPN form ) at a new line and it will be accepted.
In your code, add a new line after exhausting the stack contents.
while (s.top !=0)
{
y = pop();
printf("%c", y) ;
}
printf("\n"); // new line after the stack elements are popped
n--;