Problem bracketstack
User R9q5P8
Submission Time 2025-11-18 10:36:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketstack.cpp: In function ‘int main()’:
bracketstack.cpp:20:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if (p == "(")
| ^~~
bracketstack.cpp:28:33: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
28 | if (*bracket[bracket.size()-1] == "(")
| ^