QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#708814#8515. KMOPZhaoZiLongCompile Error//C++231.8kb2024-11-04 07:26:502024-11-04 07:26:51

Details

answer.code: In function ‘void construirAcronimos(std::vector<std::__cxx11::basic_string<char> >&, std::string, int, int&)’:
answer.code:49:47: error: cannot bind non-const lvalue reference of type ‘std::string&’ {aka ‘std::__cxx11::basic_string<char>&’} to an rvalue of type ‘std::__cxx11::basic_string<char>’
   49 |             if (esPronunciable(acronimoActual + palabras[indiceDePalabra].substr(0, i)))
      |                                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:8:29: note:   initializing argument 1 of ‘bool esPronunciable(std::string&)’
    8 | bool esPronunciable(string &acronimo)
      |                     ~~~~~~~~^~~~~~~~