Problem lengthsort
User weccs
Submission Time 2025-07-03 11:53:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:5:39: error: expected ‘,’ or ‘...’ before ‘%’ token
5 | bool cmp(const string& a, const string% b) {
| ^
lengthsort.cpp: In function ‘bool cmp(const string&, std::string)’:
lengthsort.cpp:6:23: error: ‘b’ was not declared in this scope
6 | return a.size() > b.size();
| ^