#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
string input = "kot rok sex porno ya xz chto eshe napisat";
string sogl = "bcdfghjklmnpqrstvwxz";
int count = 0;
int sum = 0;
cout << "Исходная строка: " << input << "\n";
for (int i = 0; i <= input.length(); i++)
{
for (int j = 0; j <= sogl.length(); j++)
{
if (input[i] == sogl[j])
{
count++;
sum += (int)input[i];
if ((int)input[i] % 2 == 0)
{
cout << "Символ: <" << input[i] << "> имеет четный код = " << (int)input[i] << "\n";
}
}
}
}
cout << "Количество согласных строчных символов = " << count << ";\nСумма их кодов = " << sum << ";\n";
}