Problem sort
User boomphcoding
Submission Time 2026-02-01 17:42:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:15:44: error: a function-definition is not allowed here before ‘{’ token
15 | bool cmp(const string& a, const string& b){
| ^
sort.cpp:23:25: error: ‘cmp’ was not declared in this scope; did you mean ‘bcmp’?
23 | sort(v.begin(),v.end(),cmp);
| ^~~
| bcmp