Problem bracketex
User Isabel123
Submission Time 2023-11-08 14:40:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:12:33: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} and ‘char’)
12 | if (v == ')' && s.top() == '('){
| ~~~~~~~ ^~ ~~~
| | |
| | char
| __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from bracketex.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘tem