Problem sort
User Hytoh
Submission Time 2023-12-06 14:57:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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