This commit is contained in:
Radovan Kofira 2020-11-24 20:59:33 +01:00
parent c00b5332ae
commit 9df06406d8

View File

@ -8,8 +8,10 @@ int main() {
int *a = calloc(MAX, sizeof(int));
for (i = 0; i < MAX; i++) {
scanf("%d", &a[i]);
if(a[i]!=0){
n++;
}
}
//m = buildmaxheap(a, n);
printf("Je to taka kopa:\n");
for (i = 0; i < n; i++) {