Код: Выделить всё
for (auto l = ptr; l < p_string.length(); ++l) {
if (p_string[l] == target_char) {
ptr = l + 1; // Move the piece pointer past the found character
found = true;
break;
}
}
Код: Выделить всё
D.cpp In function long long int solve std string std vector std __cxx11 basic_string char std vector long long int bool D.cpp 48 42 warning comparison of integer expressions of different signedness int and std __cxx11 basic_string char size_type aka long unsigned int -Wsign-compare 48 | for auto l = ptr l p_string.length ++l | ^
помогите мне решить эту проблему.
Приведите альтернативный код или решение и, если возможно, укажите причину, по которой я получаю эту ошибку.>
Подробнее здесь: https://stackoverflow.com/questions/797 ... nt-and-std
Мобильная версия