Problem bracketex
User ybc
Submission Time 2023-11-17 21:38:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:10:3: error: expected initializer before ‘cin’
10 | cin >> n;
| ^~~
bracketex.cpp:21:33: error: ‘mystack’ was not declared in this scope; did you mean ‘obstack’?
21 | } else if (x == ')' && s == mystack && s.top() == '(') {
| ^~~~~~~
| obstack