fork download
  1. // CPP program to illustrate
  2. // Implementation of front() function
  3. #include <iostream>
  4. #include <list>
  5. #include <string.h>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. list<string> mylist{ "true", "23e4567-e89b-12d3-a456-426614174000" };
  11. mylist.back();
  12. cout << mylist.back();
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5516KB
stdin
45
stdout
23e4567-e89b-12d3-a456-426614174000