Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; bool greater_than_10(int value) { return value > 10; } int main() { vector
numbers = {1, 7, 3, 5, 9, 2}; if (none_of(numbers.begin(), numbers.end(), greater_than_10)) { cout << "None of the numbers are greater than 10"; } else { cout << "Some numbers are greater than 10"; } return 0; }
None of the numbers are greater than 10