Problem lengthsort
User Stucknight
Submission Time 2023-08-21 11:42:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:4:10: error: ‘string1’ was not declared in this scope; did you mean ‘stdin’?
4 | bool cmp(string1, string2) {
| ^~~~~~~
| stdin
lengthsort.cpp:4:19: error: ‘string2’ was not declared in this scope; did you mean ‘stdin’?
4 | bool cmp(string1, string2) {
| ^~~~~~~
| stdin
lengthsort.cpp:4:26: error: expression list treated as compound expression in initializer [-fpermissive]
4 | bool cmp(string1, string2) {
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from lengthsort.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_it