fork download
  1. #include <vector>
  2. #include<memory>
  3.  
  4. int main() {
  5.  
  6. std::vector<std::unique_ptr<int>> v;
  7.  
  8. for(int i = 0; i < 1000; ++i) {
  9. v.push_back(std::unique_ptr<int>(new int));
  10. }
  11. }
Success #stdin #stdout 0s 3024KB
stdin
Standard input is empty
stdout
Standard output is empty