fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<string> vec;
  8. vec.push_back("a");
  9. vec.push_back("b");
  10. cout << vec[0] << endl;
  11. cout << vec[10] << endl;
  12. cout << vec[1] << endl;
  13. // your code goes here
  14. return 0;
  15. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
a

b