fork(1) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. // your code goes here
  5.  
  6. int* massive;
  7. int n;
  8.  
  9. std::cin >> n;
  10.  
  11. massive = new int[n];
  12.  
  13. for (int i=0; i<n; i++) std::cout << massive[i] << ' ';
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3476KB
stdin
10
stdout
0 0 0 0 0 0 0 0 0 0