fork download
#include 
#include 


int main ()
{
    int myints[] = {32,71,12,45,26,80,53,33};
    
    std::cout<< "Unsorted:\n";
    for (auto i : myints) std::cout<< i<< '\n';
    
    std::sort (myints, myints + 8);
    
    std::cout<< "Sorted:\n";
    for (auto i : myints) std::cout<< i<< '\n';
    
    return 0;
}
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Unsorted:
32
71
12
45
26
80
53
33
Sorted:
12
26
32
33
45
53
71
80