This commit is contained in:
Oleksandr Vyshniakov 2025-10-12 22:30:48 +02:00
parent 3ee0656e53
commit 4aebd8a377

View File

@ -28,7 +28,7 @@ struct stack* create_stack (int capacity) {
void push_stack(struct stack* s, float value) { void push_stack(struct stack* s, float value) {
if (s->size >= s->capacity) { if (s->size >= s->capacity) {
printf("Stack perepolnen!\n"); printf("full stack\n");
exit(1); exit(1);
} }
s->values[s->size] = value; s->values[s->size] = value;