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

Compile Error

sort.cpp:3:27: error: ‘string’ was not declared in this scope
3 | bool xmxkmnp321i130inor23(string string_a,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;std::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:27: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from sort.cpp:2:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/9/bi