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

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:15:3: error: ‘maxele’ was not declared in this scope
15 | maxele=distance(0,max_element(length.begin(),length.end()));
| ^~~~~~
lengthsort.cpp:15:21: error: ‘max_element’ was not declared in this scope
15 | 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);
| ^~~