Skip to content

add brackets_checker#33

Open
Quark1111 wants to merge 2 commits intomainfrom
bracket
Open

add brackets_checker#33
Quark1111 wants to merge 2 commits intomainfrom
bracket

Conversation

@Quark1111
Copy link
Owner

No description provided.

@Quark1111 Quark1111 requested a review from chernishev December 23, 2025 22:27

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо не создавать каждый раз новый PR, а продолжать работать в том же. Иначе комментарии теряются.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кстати, я уже об этом писал в предыдущем PR по этой задаче. Со следующего начну снижать баллы.

Comment on lines +18 to +28
for (int i = 0; i < strlen(str); i++) {
if (str[i] == '(' || str[i] == '[' || str[i] == '{')
push(&ScobStruct, str[i]);
else if (str[i] == ')' || str[i] == ']'||str[i] == '}')
if (ScobStruct.next == NULL || !checkParen(get(&ScobStruct), str[i])){
flag = 0;
break;
} else {
pop(&ScobStruct);
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень тяжело разобраться, что здесь происходит из-за форматирования. Не ленитесь ставить фигурные скобки и отступы.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants