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

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:14:8: error: expected unqualified-id before ‘<<’ token
14 | vector<<pair<int, int>> lst;
| ^~
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);
| ^~~