This is interesting to me because I am a PIC newbie too!
In your program, I don't see a value being assigned to "a" - but I don't really know C. Does it get the value from the function call?
Have you checked that the power/gnd connections actually have voltage on them? It's strange not even an LED flasher will work. Can you run the program step by step in your IDE?
If no program will run, how can you tell it is being programmed? Is your IDE using the correct compiler? Does the chip get vcc,vpp and gnd when it's being programmed? Check voltages at the actual pins of the PIC.
Well, that's all I can think of. Good luck.