From 19dac178446af4f1468e5369857469ca9f51ed20 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 29 Nov 2020 22:10:50 +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 afb2ae3..b21b543 100644 --- a/a3/program.c +++ b/a3/program.c @@ -20,7 +20,7 @@ void check_heap(int size, int* array){ if(c >= size) break; if(!(array[c] >= array[i])){ printf("Nie je to kopa.\n"); - return; + exit(0); } }