Problem | lengthsort |
---|---|
User | supercel980 |
Submission Time | 2024-07-29 10:49:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:14:42: error: expected primary-expression before ‘)’ token
14 | sort(V.begin(), V.end(), greater<string>)
| ^
lengthsort.cpp:15:18: error: ‘i’ was not declared in this scope
15 | for( int i = 0; i < a; i++) {
| ^
lengthsort.cpp:16:23: error: expected ‘}’ at end of input
16 | cout << V[i] << "\n";
| ^
lengthsort.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^