Problem lengthsort
User AltheaZ
Submission Time 2023-06-30 12:46:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:15:25: error: ‘max_element’ was not declared in this scope
15 | int maxele=distance(0,max_element(length.begin(),length.end()));
| ^~~~~~~~~~~
lengthsort.cpp:17:9: error: ‘class std::vector<std::__cxx11::basic_string<char> >’ has no member named ‘pop’
17 | words.pop(maxele);
| ^~~