missing closing brackets a1
This commit is contained in:
parent
a172a9c5d1
commit
4dea0649d6
@ -51,7 +51,7 @@ int main()
|
|||||||
|
|
||||||
if (top != -1)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user