This commit is contained in:
Radovan Kofira 2020-11-24 20:21:03 +01:00
parent e148a5b9ea
commit 9a3a7ab227

View File

@ -12,9 +12,9 @@ int main() {
scanf("%d", &a[i]); scanf("%d", &a[i]);
} }
//m = buildmaxheap(a, n); //m = buildmaxheap(a, n);
printf("The heap is\n"); printf("Je to taka kopa:\n");
for (t = 0; t < n; t++) { for (i = 0; i < n; i++) {
printf("%d\n", m[t]); printf("%d\n", a[i]);
} }
return 0; return 0;