This commit is contained in:
Your Name 2025-10-19 21:33:18 +02:00
parent ab4de8b3ca
commit 128593cbd0

View File

@ -240,7 +240,12 @@ int main()
if (stack->arr_pos>=0) if (stack->arr_pos>=0)
{ {
printf("Missing closing brackets: %c\n", closed_for_opened(stack->brackets[stack->arr_pos])); printf("Missing closing brackets: ");
for (size_t i = 0; i < stack->arr_pos+1; i++)
{
printf("%c", closed_for_opened(stack->brackets[i]));
}
printf("\n");
free(code); free(code);
freeStack(stack); freeStack(stack);
return 0; return 0;