diff --git a/a3/program.c b/a3/program.c index acb8625..4c856c4 100644 --- a/a3/program.c +++ b/a3/program.c @@ -20,7 +20,7 @@ struct node* root; int i,n; int *a = calloc(MAX, sizeof(int)); for (i = 0; i < MAX; i++) { - scanf("%d", root->data); + scanf("%d", &root->data); if(a[i]!=0){ n++; }