Problem bracketex
User jiazethesigma
Submission Time 2025-12-07 20:06:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp:4:9: error: array bound is not an integer constant before ‘]’ token
4 | char x[n];
| ^
bracketex.cpp: In function ‘int rec(int)’:
bracketex.cpp:9:5: error: ‘x’ was not declared in this scope
9 | if(x[i]=='(')
| ^
bracketex.cpp:19:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
19 | return;
| ^~~~~~
bracketex.cpp:27:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
27 | return;
| ^~~~~~
bracketex.cpp:31:5: error: ‘x’ was not declared in this scope
31 | if(x[i]=='[')
| ^
bracketex.cpp:41:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
41 | return;
| ^~~~~~
bracketex.cpp:49:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
49 | return;
| ^~~~~~
bracketex.c