There is NOTHING WRONG with your posted code EXCEPT you shouldn't have ADCON1 in it. The compiler flags FIVE errors all to do with ADCON1 - and that should immediately cause to you think that there is a problem there. I refer you to the 12F629 Datasheet.

If you are having other errors, then perhaps you should tell us what they are. You might be using the wrong line to compile, or a compiler that doesn't support that device. A statement that says "THIS IS ERROR" doesn't excatly tell us much.