| Problem | bracketex |
|---|---|
| User | jiazethesigma |
| Submission Time | 2025-12-07 20:04:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bracketex.cpp:4:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
4 | cin>>n;
| ^~~
| sin
bracketex.cpp:5:9: error: array bound is not an integer constant before ‘]’ token
5 | char x[n];
| ^
bracketex.cpp: In function ‘int rec(int)’:
bracketex.cpp:10:5: error: ‘x’ was not declared in this scope
10 | if(x[i]=='(')
| ^
bracketex.cpp:30:5: error: ‘x’ was not declared in this scope
30 | if(x[i]=='[')
| ^
bracketex.cpp:50:5: error: ‘x’ was not declared in this scope
50 | 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];
| ^
bracketex.cpp:79:9: error: expected ‘;’ before ‘}’ token
79 | rec(i)
| ^
| ;
80 | }
| ~