text: #include <cstdio>
  #include <cstdint>
  #include <cstdlib>
  
  void fillarr(short* a, size_t n) {
      for (size_t i = 0; i < n; i++) {
          a[i] = 42;
      }
  }
  
  void printarr(const short* a, size_t n) {
      for (size_t i = 0; i < n; i++) {
          printf("%d ", a[i]);
      }
      printf("\n");
  }
  
  int main() {
      size_t n = rand() % 1024;
      short* a = new short[n * 2];
      fillarr(a, n);
      printarr(a, n);
      delete[] a;
      return 0;
  }
  