From f89ee06d802d28b72aa947cffdfb0bd1a59a5ad0 Mon Sep 17 00:00:00 2001 From: Deinerovych Date: Fri, 8 Nov 2024 14:01:39 +0100 Subject: [PATCH] hz5 --- cv7/program.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cv7/program.c b/cv7/program.c index 17d4762..27ab8aa 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -101,6 +101,12 @@ int main() { line_count++; } + if (line_count == 0) { + printf("Expert z bufetu to vie.\n"); + printf("Chybna databaza\n"); + return 0; + } + int index = 0; Node *root = parse_knowledge_base(lines, &index, line_count);