Problem sort
User ToiletBrIcker
Submission Time 2024-06-19 11:35:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘bool xmxkmnp321i130inor23(std::string, std::string)’:
sort.cpp:3:73: error: expected ‘(’ before ‘string_a’
3 | bool xmxkmnp321i130inor23(std::string string_a,std::string string_b){if string_a.size() != string_b.size(){return string_a.size() > string_b.size();}else{return string_a > string_b;}int main(){long long N;std::cin >> N;string arr[N];for (int i = 0;i>N;i++){std::cin>>arr[i]}std::sort(arr,arr+n,xmxkmnp321i130inor23);std::cout >> arr;}
| ^~~~~~~~
| (
sort.cpp:3:150: error: ‘else’ without a previous ‘if’
3 | bool xmxkmnp321i130inor23(std::string string_a,std::string string_b){if string_a.size() != string_b.size(){return string_a.size() > string_b.size();}else{return string_a > string_b;}int main(){long long N;std::cin >> N;string arr[N];for