Problem bracketex
User jiazethesigma
Submission Time 2025-12-07 20:05:15
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:29:5: error: ‘x’ was not declared in this scope
29 | if(x[i]=='[')
| ^
bracketex.cpp:49:5: error: ‘x’ was not declared in this scope
49 | if(x[i]=='{')
| ^
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:75:8: error: ‘x’ was not declared in this scope
75 | cin>>x[i];
| ^