"*x is an int*, so you can not assign an int to it." . . . .