Problem | lengthsort |
---|---|
User | cobnet |
Submission Time | 2025-03-12 23:33:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:12:66: error: ‘CustomCompare’ was not declared in this scope
12 | priority_queue<pair<int, string>, vector<pair<int, string>>, CustomCompare> lis;
| ^~~~~~~~~~~~~
lengthsort.cpp:12:79: error: template argument 3 is invalid
12 | priority_queue<pair<int, string>, vector<pair<int, string>>, CustomCompare> lis;
| ^
lengthsort.cpp:16:13: error: request for member ‘push’ in ‘lis’, which is of non-class type ‘int’
16 | lis.push({temp.size(), temp});
| ^~~~
lengthsort.cpp:18:17: error: request for member ‘empty’ in ‘lis’, which is of non-class type ‘int’
18 | while (!lis.empty()) {
| ^~~~~
lengthsort.cpp:19:21: error: request for