Problem bracketex
User MagicHenry
Submission Time 2025-06-06 23:34:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp:16:40: error: empty character constant
16 | if (!((top=='(' && c==')') || (top=='' && c=='}') || (top=='[' && c==']'))) {
| ^~
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:11:16: error: no matching function for call to ‘get(char&)’
11 | s.push(get(c));
| ^
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from bracketex.cpp:1:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
bracketex.cpp:11:16: