Problem lengthsort
User hwy
Submission Time 2023-06-04 09:21:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:14:24: error: template argument 1 is invalid
14 | vector<pair<int, int> lst;
| ^~~
lengthsort.cpp:14:24: error: template argument 2 is invalid
lengthsort.cpp:17:3: error: ‘order’ was not declared in this scope
17 | order = i;
| ^~~~~
lengthsort.cpp:19:3: error: ‘lst’ was not declared in this scope
19 | lst.push_back(make_pair(temp.length(),order));
| ^~~
lengthsort.cpp:21:7: error: ‘lst’ was not declared in this scope
21 | sort(lst.begin(), lst.end(), condition);
| ^~~