From 83637813a2ac9526485e3762d9ccc507275db4db Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 24 Nov 2020 20:23:14 +0100 Subject: [PATCH] a --- a3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;