From bdf1bf75b92830dfa06a029b8757a31a69e56c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 14 Oct 2021 10:29:28 +0200 Subject: [PATCH] prvy --- cv2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv2/program.c b/cv2/program.c index d41315c..202582d 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 + 1; c++){ - for (d = 0; d < a + 1; d++){ + for (d = 0; d < a; d++){ d++; if (jedalny_listok[d].prize > jedalny_listok[d+2].prize){ pred = jedalny_listok[d].prize;