Problem | bracketex |
---|---|
User | Kanish |
Submission Time | 2023-11-09 10:10:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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()) {
| ^~~
bracketex.cpp:30:1: error: expected primary-expression before ‘}’ token
30 | }
| ^
bracketex.cpp: At global scope:
bracketex.cpp:31:1: error: ‘cout’ does not name a type
31 | cout<<"Invalid"
| ^~~~
bracketex.cpp:33:1: error: expected unqualified-id before ‘return’
33 | return 0;
| ^~~~~~