refresh
This commit is contained in:
parent
54bbfb6f20
commit
3ee0656e53
@ -67,7 +67,7 @@ int main() {
|
||||
print_stack(s);
|
||||
} else if (strcmp(input, "+")==0 || strcmp(input, "-")==0 || strcmp(input, "*")==0 || strcmp(input, "/")==0) {
|
||||
if (s->size < 2) {
|
||||
printf("no input\n");
|
||||
printf("not enough operands\n");
|
||||
destroy_stack(s);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user