Problem bracketex
User Kanish
Submission Time 2023-11-09 10:04:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:20:41: error: lvalue required as left operand of assignment
20 | } else if ((x == ')' || x = ']' || x == '}') && s.empty()) { cout<<"Invalid" << "\n";
| ^~~
bracketex.cpp:27:1: error: expected primary-expression before ‘}’ token
27 | }
| ^
bracketex.cpp: At global scope:
bracketex.cpp:28:1: error: ‘cout’ does not name a type
28 | cout<<"Invalid" << "\n";
| ^~~~
bracketex.cpp:29:1: error: expected unqualified-id before ‘return’
29 | return 0;
| ^~~~~~