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++;