int main()
{
const size_t size = 11;
int mass[size] = { 0,0,0,0,0,0,1,0,0,0,0 };
int* pointer = mass;
int count_one = 0;
for (int counter = 0; counter < size; counter++) {
if (*(pointer + counter) == 1) {
count_one++;
break;
}
}
if (count_one == 0) {
std::cout << "Гирлянда должна иметь хотя-бы 1 флажок" << std::endl;
}
}