Problem lengthsort
User 583116UB
Submission Time 2024-04-27 09:59:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘bool cmp(std::string, std::string)’:
lengthsort.cpp:5:23: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘lenght’; did you mean ‘length’?
5 | return a.length() >b.lenght();
| ^~~~~~
| length