I dont know about illegal, but chances are if you win, they will need your real name, age, etc. for you to receive the prize, and if you are not of age, you will be disqualified. I guess it really depends on what kind of contest you are entering.
best of luck.