Update 'a1/program.c'
This commit is contained in:
parent
19d14e03f6
commit
a047c1eb94
@ -33,11 +33,6 @@ int main() {
|
|||||||
int skobochka = -1;
|
int skobochka = -1;
|
||||||
int error = -1;
|
int error = -1;
|
||||||
|
|
||||||
int delet = strlen(code);
|
|
||||||
if (delet > 0 && code[delet - 1] == '\n') {
|
|
||||||
code[delet - 1] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; code[i] != '\0'; i++) {
|
for (int i = 0; code[i] != '\0'; i++) {
|
||||||
if (open_brackets(code[i])) {
|
if (open_brackets(code[i])) {
|
||||||
stack[++skobochka] = i;
|
stack[++skobochka] = i;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user