Problem | lengthsort |
---|---|
User | PrunJuice |
Submission Time | 2024-03-28 09:44:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘bool compare(const std::pair<std::__cxx11::basic_string<char>, int>&, const std::pair<std::__cxx11::basic_string<char>, int>&)’:
lengthsort.cpp:7:14: error: ‘const struct std::pair<std::__cxx11::basic_string<char>, int>’ has no member named ‘length’
7 | return a.length() > b.length();
| ^~~~~~
lengthsort.cpp:7:27: error: ‘const struct std::pair<std::__cxx11::basic_string<char>, int>’ has no member named ‘length’
7 | return a.length() > b.length();
| ^~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from lengthsort.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation