a3
This commit is contained in:
parent
586e874d6e
commit
21d18dafda
@ -20,7 +20,7 @@ struct node* root;
|
|||||||
int i,n;
|
int i,n;
|
||||||
int *a = calloc(MAX, sizeof(int));
|
int *a = calloc(MAX, sizeof(int));
|
||||||
for (i = 0; i < MAX; i++) {
|
for (i = 0; i < MAX; i++) {
|
||||||
scanf("%d", root->data);
|
scanf("%d", &root->data);
|
||||||
if(a[i]!=0){
|
if(a[i]!=0){
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user