Problem lengthsort
User themadpotato
Submission Time 2023-04-21 16:37:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:4:69: error: template argument 2 is invalid
4 | bool cmp(pair<string, pair<int, int> a, pair<string, pair<int, int> b){
| ^
lengthsort.cpp:4:69: error: template argument 2 is invalid
lengthsort.cpp:4:69: error: template argument 2 is invalid
lengthsort.cpp:4:69: error: template argument 2 is invalid
lengthsort.cpp:4:10: error: invalid template-id
4 | bool cmp(pair<string, pair<int, int> a, pair<string, pair<int, int> b){
| ^~~~
lengthsort.cpp:4:70: error: missing template arguments before β€˜)’ token
4 | bool cmp(pair<string, pair<int, int> a, pair<string, pair<int, int> b){
| ^
lengthsort.cpp: In function β€˜int main()’:
lengthsort.cpp:15:38: error: template argument 1 is invalid
15 | vector<pair<