You don't have a variable name here:

int = 1 ;

This is always true:

while (repeat = 1)

cin uses the >> operator.