title: Vector of Vectors on C
body: <p>I'm new here and this is my first question, i couldn't find anything like this in the search engine so my problem is basically a vector of vectors on C, here is what i have done until now but i keep getting a deadly warning, so i know that I'm not using well the structure with the vector and I'd really appreciate some help. </p>
  
  <p>Thanks</p>
  
  <p>PD: Sorry for my english.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;stdlib.h&gt;
  
  typedef struct
  {
  int n;
  int *vector;
  }Vector_T;
  
  int inicializar_original(int *n,int dim)
  {
  int i,r,s,j,*k;
  Vector_T *t;
  Vector_T l;
  srand(time(NULL));
  r=rand()%10;
  scanf("%d",&amp;s);
  t-&gt;vector=k;
  l.n=s;
  k=(int*)malloc(s*sizeof(int));
  for(j=0;j&lt;s;j++)
  {
  k[j]=r;
  }
      for(i=0;i&lt;dim;i++)
      {
      n[i]=k;
      }
  }
  
  
  int main()
  {
  int *v,dim;
  scanf("%d",&amp;dim);
  v=(int*)malloc(dim*sizeof(int));
  inicializar_original(v,dim);
  }
  </code></pre>