This commit is contained in:
Anton Dolozin 2025-11-09 21:55:53 +01:00
parent 75cc8ff554
commit ecdf8f38f8

View File

@ -100,10 +100,10 @@ int main(void){
whitespace = true;
break;
}
};
}
bool found = find_the_incorrect(tree);
printf("Expert z bufetu to vie.\n");
if(!tree || !whitespace || found || strcmp(tree->value, "Je to ovocie alebo zelenina") != 0){
if(!tree || !whitespace || found || strcmp(tree->value, "Rastie to nad zemou alebo pod zemou ?") == 0){
printf("Chybna databaza\n");
return 0;
}