fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. class A
  6. {
  7. public:
  8. A(int i)
  9. {
  10. cout<<"Called"<<endl;
  11. }
  12. };
  13.  
  14. int main()
  15. {
  16. vector<A> v(5,A(1));
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 2812KB
stdin
Standard input is empty
stdout
Called