Problem bracketex
User spidermancoolboy
Submission Time 2024-03-13 22:33:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:9:14: error: could not convert ‘current.std::__cxx11::basic_string<char>::operator=(40)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
9 | if (current='('){
| ~~~~~~~^~~~
| |
| std::__cxx11::basic_string<char>
bracketex.cpp:11:21: error: could not convert ‘current.std::__cxx11::basic_string<char>::operator=(41)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
11 | } else if (current=')'){
| ~~~~~~~^~~~
| |
| std::__cxx11::basic_string<char>
bracketex.cpp:13:21: error: could not convert ‘current.std::__cxx11::basic_string<char>::operator=(91)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
13 | } else if (current='['){
| ~~~~~~~^~~~
| |
|