Problem | lengthsort |
---|---|
User | P55D2K |
Submission Time | 2023-04-26 09:20:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:20:12: error: ‘class std::queue<std::__cxx11::basic_string<char> >’ has no member named ‘begin’
20 | sort(q.begin(), q.end(), [](string a, string b) {
| ^~~~~
lengthsort.cpp:20:23: error: ‘class std::queue<std::__cxx11::basic_string<char> >’ has no member named ‘end’
20 | sort(q.begin(), q.end(), [](string a, string b) {
| ^~~
lengthsort.cpp:26:17: error: ‘v’ was not declared in this scope
26 | cout << v[i] << "\n";
| ^