Problem lengthsort
User Teeskit
Submission Time 2025-08-20 19:44:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:15:31: error: a function-definition is not allowed here before ‘{’ token
15 | bool comp(string a, string b){
| ^
lengthsort.cpp:19:30: error: ‘comp’ was not declared in this scope
19 | sort(v.begin(), v.end(), comp);
| ^~~~