This commit is contained in:
Oleksandr Hryshchenko 2021-11-29 18:15:32 +00:00
parent 41305a912a
commit 48284dcb27

View File

@ -27,14 +27,14 @@ int main(){
int x = 0;
scanf("%[^\n]", string);
//scanf("%[^\n]", string);
strcpy(BB, string);
int i = 0;
while (1){
if( BB[i] == '[' || BB[i] == '(' || BB[i] == '{' || BB[i] == '<'){
if( BB[i] != '[' || BB[i] != '(' || BB[i] != '{' || BB[i] != '<'){
pushStack(&stack, BB[i]);
BB[i] = ' ';