Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 2, 3, 5, 7, 9}; if (is_sorted(numbers.begin(), numbers.end())) { cout << "Sorted"; } else { cout << "Not sorted"; } return 0; }
Sorted