From c31922775537116dafe8cccce8ab584c78993069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Wed, 15 Apr 2026 09:43:53 +0000 Subject: [PATCH] Aktualizovat du5/program.c --- du5/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index b0849ab..1ea6844 100644 --- a/du5/program.c +++ b/du5/program.c @@ -36,7 +36,8 @@ int buildATree() char *line = lines[indexLine]; indexLine += 1; //pomocny index - int current = nodeCount += 1; + int current = nodeCount; + nodeCount += 1; if (line[0] == '*') { tree[current].isAnswer = true;