This commit is contained in:
Anton Dolozin 2025-10-06 16:42:01 +02:00
parent 08fee34c39
commit 314d955233

View File

@ -2,7 +2,7 @@
#include<stdlib.h>
#include <string.h>
#include <assert.h>
#define STACK_SIZE 10000
#define STACK_SIZE 10
struct stack{
float values[STACK_SIZE];
@ -65,6 +65,10 @@ void process_operations(struct stack* stack) {
return;
}
} else {
if(stack->size == STACK_SIZE){
printf("full stack\n");
return;
}
char *endptr;
if (line[0] == '.')
{ printf("bad input\n");