fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int* n = new int[4];
  7. for(int i = 0; i < 4; i++)
  8. cout << i << " ";
  9. cout << endl;
  10. delete[] n;
  11. n = new int[10];
  12. for(int i = 0; i < 10; i++)
  13. cout << i << " ";
  14. return 0;
  15. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
0 1 2 3 
0 1 2 3 4 5 6 7 8 9