you need to set one () around all statements:

while((x_1 == x_2) | ...... | (x_1 == x_10))