From 64396128e57c13dfef46471b81bdf70ef992a2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 14 Oct 2021 10:25:16 +0200 Subject: [PATCH] prvy --- cv2/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv2/program.c b/cv2/program.c index 376ff61..0ff542a 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -47,8 +47,8 @@ int main() { a = a / 2; //printf("%d", a); for (c = 0; c < a; c++){ - for (d = c; d < a; d++){ - d++; + for (d = 1; d < a; d++){ + //d++; if (jedalny_listok[d].prize > jedalny_listok[d+2].prize){ pred = jedalny_listok[d].prize; jedalny_listok[d].prize = jedalny_listok[d + 2].prize;