diff --git a/a3/program.c b/a3/program.c index e4e01ce..babaa4e 100644 --- a/a3/program.c +++ b/a3/program.c @@ -1,6 +1,7 @@ #include #include #define MAX 20 + struct node { int data; struct node* left; @@ -19,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++; }