| Problem | bracketex |
|---|---|
| User | jiazethesigma |
| Submission Time | 2025-12-07 20:05:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bracketex.cpp:4:4: error: found ‘:’ in nested-name-specifier, expected ‘::’
4 | std:cin>>n;
| ^
| ::
bracketex.cpp:4:5: error: ‘cin’ in namespace ‘std’ does not name a type
4 | std:cin>>n;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from bracketex.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
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