From 21d18dafdaecf602bab09ad10d69a3f91bd83431 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Tue, 24 Nov 2020 22:19:03 +0100 Subject: [PATCH] a3 --- a3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }