From 1906ecbc6d702ca8d2995b5b65733dc2938af657 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 24 Nov 2020 20:30:35 +0100 Subject: [PATCH] aa3 --- a3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a3/program.c b/a3/program.c index 6c47d32..e0d1ea4 100644 --- a/a3/program.c +++ b/a3/program.c @@ -4,9 +4,9 @@ int main() { //int l = i * 2 + 1; //int r = i * 2 + 2; - int i,n=0; + int i,n=1; int *a = calloc(MAX, sizeof(int)); - int *m = calloc(MAX, sizeof(int)); + for (i = 0; i < n; i++) { scanf("%d", &a[i]); n++;