#include #include #include using namespace std; int main() { const int a[] = {10, 20, 30}; const size_t n = sizeof a / sizeof a[0]; list li(a, a + n); list::iterator it = li.begin(); cout << "The first element of the list is " << *it << ".\n"; li.erase(it); ++it; cout << "The second element of the list is " << *it << ".\n"; return EXIT_SUCCESS; }