Problem bracketex
User ZiErn
Submission Time 2023-11-08 15:03:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:26:41: error: expected ‘)’ before ']'
26 | else if ((s == ')' || s == '}' || s -- ']') && x.empty()){
| ~ ^~~~
| )
bracketex.cpp:28:4: error: expected ‘)’ before ‘}’ token
28 | }
| ^
| )
29 | }
| ~
bracketex.cpp:26:11: note: to match this ‘(’
26 | else if ((s == ')' || s == '}' || s -- ']') && x.empty()){
| ^
bracketex.cpp:29:2: error: expected primary-expression before ‘}’ token
29 | }
| ^