Aktualizovat du5/program.c

This commit is contained in:
Tomáš Vlček 2026-04-15 10:01:40 +00:00
parent cf7005a04e
commit 1a517d4362

View File

@ -116,15 +116,15 @@ int main()
strcpy(lines[lineCount], buffer);
lineCount += 1;
}
//zisk. korena
int root = buildATree();
if (answerCount == 0)
if (root == -1)
{
printf("Koniec vstupu.\n");
return 0;
}
//zisk. korena
int root = buildATree();
printf("Expert z bufetu to vie.\n");
printf("Pozna %d druhov ovocia a zeleniny.\n", answerCount);