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

Compile Error

sort.cpp: In function ‘bool compare(const string&, const string&)’:
sort.cpp:12:12: error: a function-definition is not allowed here before ‘{’ token
12 | int main() {
| ^
sort.cpp:29:1: error: expected ‘}’ at end of input
29 | }
| ^
sort.cpp:5:48: note: to match this ‘{’
5 | bool compare(const string &a, const string &b) {
| ^