fix s nespravnymi operatormi 5

This commit is contained in:
Aleš Novysedlák 2025-03-10 14:41:05 +01:00
parent a4f88b62de
commit b915ec9466

View File

@ -56,7 +56,7 @@ int main() {
equation[eq_index][eq_operand_length] = '\0'; equation[eq_index][eq_operand_length] = '\0';
eq_index++; eq_index++;
} }
if (operator_count < 2) { if (operator_count < 2 && !error) {
error = 1; error = 1;
strcpy(output[output_length], "CHYBA"); strcpy(output[output_length], "CHYBA");
output_length++; output_length++;