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

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:13:14: 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:27: 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) {
| ^~~