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;