This commit is contained in:
Maksym Kovalchuk 2026-04-16 19:56:14 +00:00
parent b488da5751
commit 3c4cc5c190

View File

@ -3,6 +3,7 @@
#include <string.h> #include <string.h>
#define SIZE 256 #define SIZE 256
int error = 0;
typedef struct Tree { typedef struct Tree {
char text[SIZE]; char text[SIZE];
@ -14,7 +15,6 @@ typedef struct Tree {
// читання дерева (preorder) // читання дерева (preorder)
Tree* readTree() { Tree* readTree() {
char line[SIZE]; char line[SIZE];
int error = 0;
if (fgets(line, SIZE, stdin) == NULL) return NULL; if (fgets(line, SIZE, stdin) == NULL) return NULL;