Problem lengthsort
User BigEd15
Submission Time 2025-04-29 13:03:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:9:32: error: a function-definition is not allowed here before ‘{’ token
9 | bool comp(string a, string b) {
| ^
lengthsort.cpp:25:19: error: ‘comp’ was not declared in this scope
25 | sort(arr, arr+n, comp);
| ^~~~