This commit is contained in:
Nataliia Kobryn 2025-10-16 21:33:20 +02:00
parent 7dbca0e0f6
commit d4fbad15f2

View File

@ -62,8 +62,8 @@ int main(){
} }
else if (strlen(input)==1&&strchr("+-*/",input[0])){ else if (strlen(input)==1&&strchr("+-*/",input[0])){
if (mystack.size<2){ if (mystack.size<2){
printf("Nedostatok hodnot"); printf("not enough operands\n");
return 1;} return 0;}
float b=pop(&mystack); float b=pop(&mystack);
float a = pop(&mystack); float a = pop(&mystack);
float result = 0; float result = 0;