QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#708814 | #8515. KMOP | ZhaoZiLong | Compile Error | / | / | C++23 | 1.8kb | 2024-11-04 07:26:50 | 2024-11-04 07:26:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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) | ~~~~~~~~^~~~~~~~