a3
This commit is contained in:
parent
c00b5332ae
commit
9df06406d8
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user