Problem | shortest |
---|---|
User | user123 |
Submission Time | 2023-08-28 22:56:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shortest.cpp: In function ‘int main()’:
shortest.cpp:89:27: error: no match for ‘operator=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘std::string(std::string, std::string)’ {aka ‘std::__cxx11::basic_string<char>(std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>)’})
89 | if (cmp(sq, s)) l=add;
| ^~~
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 shortest.cpp:1:
/usr/include/c++/9/bits/basic_string.h:719:7: note: candidate: ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _A