I need help with a little code entry pad.

byte buttons[BTNCNT] = {2,3,4,5,6,7,8,9,10} ; //Set buttons to array

If you specify the size of the array then you can't initialise it like this, you have to use:-

byte buttons[] = {2,3,4,5,6,7,8,9,10} ; //Set buttons to array