This commit is contained in:
Radovan Kofira 2020-11-24 20:42:09 +01:00
parent 6d01152d94
commit 84c0fb78bf

View File

@ -6,15 +6,12 @@ int main() {
//int r = i * 2 + 2;
int i,j,n,count;
int *a = calloc(MAX, sizeof(int));
scanf("%d",n);
while(n!=0){
a[i]=n;
i++;
count++;
}
for(int i;i<MAX;i++){
scanf("%d",a[i]);
}
//m = buildmaxheap(a, n);
printf("Je to taka kopa:\n");
for (i = 0; i < count; i++) {
for (i = 0; i < MAX; i++) {
printf("%d\n", a[i]);
}