you want to setup the ADC before you start, like:
ADCON0 = 0x00;
ANSEL = 0x01;
ADCON0 = 0x00; /* new */
ANSEL = 0x01; /* new */
> TRISIO=0b0001; //pin 0 input - pin 1-4 output
> if (valore>c) v = v | 0b0010; /* or even: v = 0b0010; */
> else if (valore>b) v = v | 0b0100; /* or: v = 0b0100; */
> else if (valore>a) v = v | 0b1000; /* or: v = 0b1000; */
You do *not* want to bitwise AND something with 0,
try bitwise OR instead (though that will light up all
LEDs for large inputs instead of only the red one).
You also do *not* want to reconfigure TRISIO with the output value,
you want to apply the latter to GPIO to influence the output pins.
I didn't check the config values nor run any tests,
but these hints might already get you started.
BTW: A description of your problem (compiler complaining, no output,
things you already tried (can you turn on/off the LEDs without ADC?))
might motivate others to give you feedback...
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/