Как сравнить size_t и Different_type?C++

Программы на C++. Форум разработчиков
Anonymous
Как сравнить size_t и Different_type?

Сообщение Anonymous »

Код ниже

Код: Выделить всё

#include 
#include 

int main()
{
std::vector v = { 1,2,3 };

if (std::count(v.begin(), v.end(), 1) > v.size() / 2) {
std::cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/79372640/how-to-compare-size-t-and-difference-type[/url]

Вернуться в «C++»