aktivita
This commit is contained in:
parent
3e1e4f05ba
commit
c995ea81a7
@ -19,7 +19,7 @@ void check_heap(int size, int* array){
|
|||||||
c = (2 * i) + 2;
|
c = (2 * i) + 2;
|
||||||
if(c >= size) break;
|
if(c >= size) break;
|
||||||
if(!(array[c] >= array[i])){
|
if(!(array[c] >= array[i])){
|
||||||
printf("Nie je to kopa.\n");
|
printf("Nie je kopa.\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user