This commit is contained in:
Maksym Kovalchuk 2026-04-16 15:18:46 +00:00
parent 8352be6eb9
commit 2c732eb6be

View File

@ -25,7 +25,6 @@ Tree* readTree() {
node->yes = NULL;
node->no = NULL;
line[strcspn(line, "\n")] = 0;
if (line[0] == '*') {
node->isAnswer = 1;
@ -113,12 +112,7 @@ int main() {
return 0;
}
// перевірка пустого рядка після бази
if (!EmptyLine()) {
printf("Chyba nacitania\n");
freeTree(root);
return 0;
}
int count = Leaves(root);