Problem lengthsort
User caleb
Submission Time 2024-05-15 17:17:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lengthsort.cpp:5:25: error: stray ‘\342’ in program
5 | bool comp(int a, int b){​
| ^
lengthsort.cpp:5:26: error: stray ‘\200’ in program
5 | bool comp(int a, int b){​
| ^
lengthsort.cpp:5:27: error: stray ‘\213’ in program
5 | bool comp(int a, int b){​
| ^
cc1plus: error: ‘::main’ must return ‘int’
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_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = std::pair<long long int, std::__cxx11::basic_string<char> >*