QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#243409#3040. ContainerMaMengQiCompile Error//C++204.6kb2023-11-08 10:14:472023-11-08 10:14:48

詳細信息

answer.code: In function ‘int main()’:
answer.code:50:7: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char*’
   50 |   way(a, minA);
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
answer.code:14:16: note:   initializing argument 1 of ‘void way(char*, int*)’
   14 | void way(char *a, int *min) {
      |          ~~~~~~^
answer.code:51:7: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char*’
   51 |   way(b, minB);
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
answer.code:14:16: note:   initializing argument 1 of ‘void way(char*, int*)’
   14 | void way(char *a, int *min) {
      |          ~~~~~~^