fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. class MyObject {
  6. };
  7.  
  8. int main() {
  9.  
  10. vector<MyObject> vector;
  11.  
  12. MyObject obj;
  13.  
  14. vector.push_back(obj);
  15.  
  16. cout << vector.size() << endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
1