From 8d54f444ab051afe702d9f96fd7b88a86cb2fefa 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:16:30 +0000 Subject: [PATCH] Aktualizovat du5/program.c --- du5/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index ed46bd8..9626941 100644 --- a/du5/program.c +++ b/du5/program.c @@ -20,7 +20,9 @@ int lineCount = 0; int indexLine = 0; int nodeCount = 0; int answerCount = 0; -int invalidIndex = -1; + +//pomocna konstanta +const int invalidIndex = -1; // vytvorii binarny strom na zakl. vstupu //** VRATI -> Bud cislo > 0 (Platny Koren) ALEBO stav '-1' (Neplatny index korenu, cize koniec stromu)