Ребят, а можете подсказать, почему здесь Runtime Error?
vector<string> arr(20, "0");
sort(arr.begin(), arr.end(), [](auto &a, auto &b) {
return a + b >= b + a;
});
AddressSanitizer:DEADLYSIGNAL
=================================================================
==30==ERROR: AddressSanitizer: SEGV on unknown address 0x616000010008 (pc 0x7f19bbd06478 bp 0x7ffd64b15c10 sp 0x7ffd64b15bf8 T0)
==30==The signal is caused by a READ memory access.
#0 0x7f19bbd06478 (/lib/x86_64-linux-gnu/libstdc++.so.6+0x145478)
#8 0x7f19bb8790b2 (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libstdc++.so.6+0x145478)
==30==ABORTING