Problem sort
User yay
Submission Time 2026-04-26 11:46:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:13:15: error: request for member ‘begin’ in ‘arr’, which is of non-class type ‘std::string [N]’ {aka ‘std::__cxx11::basic_string<char> [N]’}
13 | sort(arr.begin(), arr.end(), [](string a, string b) {
| ^~~~~
sort.cpp:13:28: error: request for member ‘end’ in ‘arr’, which is of non-class type ‘std::string [N]’ {aka ‘std::__cxx11::basic_string<char> [N]’}
13 | sort(arr.begin(), arr.end(), [](string a, string b) {
| ^~~