diff --git a/a3/program.c b/a3/program.c index 46bda33..eef6f0b 100644 --- a/a3/program.c +++ b/a3/program.c @@ -4,7 +4,7 @@ int main() { //int l = i * 2 + 1; //int r = i * 2 + 2; - int i, t ,n; + int i,n; int *a = calloc(MAX, sizeof(int)); int *m = calloc(MAX, sizeof(int)); scanf("%d", &n); @@ -14,7 +14,7 @@ int main() { //m = buildmaxheap(a, n); printf("Je to taka kopa:\n"); for (i = 0; i < n; i++) { - printf("%d\n", a[i]); + printf("%d\n", n); } return 0;