From c81802cae119e204c8422fd01e1dd101102769ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 14 Oct 2021 10:43:36 +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 219f421..464ac5f 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -49,7 +49,7 @@ int main() { for (c = 0; c < a; c++){ for (d = c; d < a; d++){ //d++; - if (jedalny_listok[d].prize > jedalny_listok[d+2].prize){ + if (jedalny_listok[d].prize > jedalny_listok[c].prize){ pred = jedalny_listok[d].prize; strcpy(strpred, jedalny_listok[d].name);