Update cv3/program.c

This commit is contained in:
Yurii Chechur 2024-10-14 11:10:13 +00:00
parent 54f1444457
commit 79ae837cbe

View File

@ -18,7 +18,7 @@ void push_stack(struct stack *s, float value) {
s->values[s->size] = value; s->values[s->size] = value;
s->size++; s->size++;
} else { } else {
printf("no input.\n"); printf("full stack\n");
exit(1); // Exit the program on overflow exit(1); // Exit the program on overflow
} }
} }