title: Unused variable error, altought it shouldent
body: <p>I`m having some  errors in my c++ program. I need to  create out of 2 sorted list, a 3-rd which is sorted out of the first 2.</p>
  
  <pre><code>void arrayInp()
  /* Create 2 vectors by the length defined by the user*/
  {
  int a,b,c,d,i,j;  
  Array A,B;    /* HERE i get the error used varaibls, why?*/
  int rez[20];
  cout&lt;&lt;"enter length of the first array: ";
  cin&gt;&gt;a;
  cout&lt;&lt;"enter length of the second array: ";
  cin&gt;&gt;b;
  
  cout&lt;&lt;"insert first array:";
  for (i=0;i&lt;=a;i++)
      cin&gt;&gt;c;
      A.els[i]=c;
      cout&lt;&lt;", ";
  
  cout&lt;&lt;"insert second array:";
  for (j=0;j&lt;=a;j++)
      cin&gt;&gt;d;
      B.els[j]=d;
      cout&lt;&lt;", ";
  }
  </code></pre>
  
  <p>The header i imported is containing:</p>
  
  <pre><code>const int dim = 10; 
  struct Array
  {
  int n;
  int els[dim];
  };
  </code></pre>
  
  <p>Thank you for your help</p>