missing closing brackets a1

This commit is contained in:
Ivan Leichenko 2024-10-31 18:10:50 +01:00
parent a172a9c5d1
commit 4dea0649d6

View File

@ -51,7 +51,7 @@ int main()
if (top != -1)
{
printf("Unmatched opening bracket %c\n", stack[top]);
printf("Missing closing brackets: %c\n", (stack[top] == '(' ? ')' : stack[top] == '{' ? '}' : stack[top] == '[' ? ']' : '>'));
return 0;
}