Please help me!!!

What's wrong this code??

while(1)

{

for(count=0;count<=(adc_get_sample-1);count++)

{

value=adc_read(1);

Sum_Ad=(value*5)/1024;

Sum_Ad =Sum_Ad-5;

buff[count]=Sum_Ad;

}

Volt=buff[0];

for(count=1;count<=(adc_get_sample-1);count++)

{

if(Volt<buff[count])

{

Volt = buff[count];

Volt_prd=Volt*Volt;

Volt_sum=Volt_sum+Volt_prd;

values[count]=Volt_sum;

}

}

Volt_avr=(values[adc_get_sample-1]/((double)adc_get_sample));

Volt_sqrt=(double)(sqrt(Volt_avr));

result=(double)Volt_sqrt;

dtostrf(result,5,1,string);

sprintf(buffer_Am,"%0.3famps",result);

_delay_us(10);

LCD_goto(1,4);

lCD_puts(buffer_Am);

}

}