Problem appeal
User liuyueyang0510
Submission Time 2024-06-18 12:57:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

appeal.cpp: In function ‘long long int mergesort(std::vector<std::__cxx11::basic_string<char> >&, int, int)’:
appeal.cpp:23:38: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const char*’
23 | if (strcmp(lft[i], rgt[j]) <= 0)
| ^
| |
| __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/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from appeal.cpp:1:
/usr/include/string.h:137:32: note: initia