Problem | medianheap |
---|---|
User | xyz |
Submission Time | 2024-01-19 14:28:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:15:22: error: no matching function for call to ‘std::__cxx11::basic_string<char>::append(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)’
15 | num.append(cmd[i]);
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from medianheap.cpp:1:
/usr/include/c++/9/bits/basic_string.h:1267:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::append(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<ch