Aktualizovat du5/program.c

This commit is contained in:
Tomáš Vlček 2026-04-15 10:51:02 +00:00
parent 375dd03d99
commit 936bca40f9

View File

@ -131,7 +131,7 @@ int main()
int root = buildATree(); int root = buildATree();
printf("Expert z bufetu to vie.\n"); printf("Expert z bufetu to vie.\n");
if (answerCount == 0) if (answerCount == 0 || root == -1 || nodeCount = 0)
{ {
printf("Chybna databaza\n"); printf("Chybna databaza\n");
} }