diff --git a/cv2/program.c b/cv2/program.c index 8828524..8cf8690 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -47,7 +47,7 @@ int main() { a = a / 2; //printf("%d", a); for (c = 0; c < a; c++){ - for (d = 0; d < a; d++){ + for (d = 0; d <= a; d++){ d++; if (jedalny_listok[d].prize > jedalny_listok[d + 2].prize){ pred = jedalny_listok[d].prize;