Problem | lengthsort |
---|---|
User | WILLI1071A |
Submission Time | 2024-08-10 19:22:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘bool customsort(std::pair<std::__cxx11::basic_string<char>, long long int>, std::pair<std::__cxx11::basic_string<char>, long long int>)’:
lengthsort.cpp:6:21: error: request for member ‘length’ in ‘a.std::pair<std::__cxx11::basic_string<char>, long long int>::second’, which is of non-class type ‘long long int’
6 | return a.second.length() > b.second.length();
| ^~~~~~
lengthsort.cpp:6:41: error: request for member ‘length’ in ‘b.std::pair<std::__cxx11::basic_string<char>, long long int>::second’, which is of non-class type ‘long long int’
6 | return a.second.length() > b.second.length();
| ^~~~~~