From d4a8e97f58c17dcf1879c8b6f7e03108efcc9534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 14 Oct 2021 10:19:34 +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 76d1ce1..48a502d 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -48,7 +48,7 @@ int main() { //printf("%d", a); for (c = 0; c < a; c++){ for (d = 0; 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;