Problem bracketex
User Johnnie
Submission Time 2023-06-19 09:49:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:19:202: error: expected ‘)’ before ‘{’ token
19 | if (!pending.empty() && !bracket.empty() && ((pending.top() == '[' && bracket.front() == ']') || (pending.top() == '(' && bracket.front() == ')') || (pending.top() == '{' && bracket.front() == '}'))
| ~ ^
| )
20 | {
| ~
bracketex.cpp:29:2: err