fork download
  1. #include <iostream>
  2. #include <list>
  3. using namespace std;
  4.  
  5. int main() {
  6. list<int> xx;
  7. xx.push_back(3);
  8.  
  9. xx.push_back(4);
  10. list<int>::iterator it = xx.end();
  11.  
  12. it--;
  13. xx.push_front(32);
  14. xx.push_back(321);
  15. cout << *it;
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 4252KB
stdin
Standard input is empty
stdout
4