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

View File

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