This commit is contained in:
Oleksandr Vyshniakov 2025-10-12 22:25:44 +02:00
parent 54bbfb6f20
commit 3ee0656e53

View File

@ -67,7 +67,7 @@ int main() {
print_stack(s); print_stack(s);
} else if (strcmp(input, "+")==0 || strcmp(input, "-")==0 || strcmp(input, "*")==0 || strcmp(input, "/")==0) { } else if (strcmp(input, "+")==0 || strcmp(input, "-")==0 || strcmp(input, "*")==0 || strcmp(input, "/")==0) {
if (s->size < 2) { if (s->size < 2) {
printf("no input\n"); printf("not enough operands\n");
destroy_stack(s); destroy_stack(s);
return 0; return 0;
} }