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);