This commit is contained in:
Radovan Kofira 2020-11-24 22:16:29 +01:00
parent 1fc83d9839
commit 80a7c227a0

View File

@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#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++;
}