the project work find with provided the PIC16F887A
however when i switch the PIC16F887A to PIC18F4550,the SW1(RE0) does not work even-though i try the simple LED blinking with
RE0 as input and RE2 as output(LED and buzzer)

i had made an assumption that the SW1 for PIC18F4550 is not RE0

pls help me take a look for my source code,is there something wrong since the i can build the code successfully

compiler:XC8
IDE:MPLAB X