Assistance with PIC16f883 C code

brickinterface.c (14.0 KB) I am struggling to build this code on MPLAB X I was wondering the someone can help me figure out if there any issues with the code?

Thanks in advance

Welcome to the ROOT forum!
Sorry, but how is this related to ROOT at all?