diff --git a/du3/program.c b/du3/program.c index ce805d3..7a94af1 100644 --- a/du3/program.c +++ b/du3/program.c @@ -10,7 +10,7 @@ int main(){ double result = 0; int a = i; for(int i = 0; i < size; i++){ - char* r = fgets(buffer,SIZE,stdin); + char* r = fgets(riadok,SIZE,stdin); if(*r != '\n'){ if(*r >= 0 && *r <= 255){ if(i == 0){ @@ -21,8 +21,8 @@ int main(){ return 0; } } - double v = strtod(buffer,&endptr); - k[i] = v; + double v = strtod(riadok,&endptr); + vxod[i] = v; a = i; }else break;