| Problem | bracketex |
|---|---|
| User | xiaocai918 |
| Submission Time | 2026-11-26 22:03:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:16:24: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
16 | for (int i = 0; i < s.size; i++) {
| ~~^~~~
| ()
bracketex.cpp:17:4: error: no match for ‘operator[]’ (operand types are ‘std::stack<char>’ and ‘int’)
17 | t[i] = s[i];
| ^
bracketex.cpp:19:24: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<