From 1a517d43627d13e51289d6b30a1ece1bd8f49ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Wed, 15 Apr 2026 10:01:40 +0000 Subject: [PATCH] Aktualizovat du5/program.c --- du5/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/du5/program.c b/du5/program.c index 170b068..cf02ca8 100644 --- a/du5/program.c +++ b/du5/program.c @@ -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);