fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<int> red;
  7. red.push_back(6);
  8. red.push_back(8);
  9. red.push_back(4);
  10. cout<<red.back();
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
4