The definition of a squatter is a person who occupies a building without a legal right to be there.(noun)
A person who moves into an abandoned building and starts living there without permission is an example of a squatter.
See squatter in Webster's New World College Dictionary
Learn more about squatter