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); } }