From f78c041a139dabed401a0736be110dc93a9e6a68 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 29 Nov 2020 22:11:23 +0100 Subject: [PATCH] aktivita --- a3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a3/program.c b/a3/program.c index b21b543..16cfd65 100644 --- a/a3/program.c +++ b/a3/program.c @@ -13,7 +13,7 @@ void check_heap(int size, int* array){ if(!(array[c] >= array[i])){ printf("Nie je to kopa.\n"); - return; + exit(0); } c = (2 * i) + 2;