Problem sort
User blackpanther
Submission Time 2025-05-07 12:28:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:11:34: error: ‘compare’ was not declared in this scope
11 | sort(arr.begin(), arr.end(), compare);
| ^~~~~~~
sort.cpp: In function ‘bool compare(const string&, const string&)’:
sort.cpp:27:1: error: expected ‘}’ at end of input
27 | }
| ^
sort.cpp:22:48: note: to match this ‘{’
22 | bool compare(const string &a, const string &b) {
| ^