C++ List Different Function 2

#include<iostream>
#include<list>
#include<iterator>
using namespace std;
int main()
{
    int r[] = {1,2,3,4,5,6,7,8,9};
    list <int> ar(r, r+9);
    list <int> :: iterator it;

    if(ar.empty())
    {
        cout << "Empty\n" << endl;
    }
    else
    {
        cout << "Find Value\n" << endl;
    }

    cout << ar.front() << endl;
    cout << ar.back() << endl;

    return 0;
}

Comments