diff --git a/du5/program.c b/du5/program.c index eab2ed7..2a882c2 100644 --- a/du5/program.c +++ b/du5/program.c @@ -3,6 +3,7 @@ #include #define SIZE 256 +int error = 0; typedef struct Tree { char text[SIZE]; @@ -14,7 +15,6 @@ typedef struct Tree { // читання дерева (preorder) Tree* readTree() { char line[SIZE]; - int error = 0; if (fgets(line, SIZE, stdin) == NULL) return NULL;