Structure error: Not recognized even though it is included
<p>More quetions:
i get an unrecognized 'eld' from mai structure.</p>

<p>header contains:</p>

<pre><code>const int c=10;
struct Array
{
int n;
int els[c];
 };
</code></pre>

<p>The error i get is:</p>

<blockquote>
  <p>error: request for member 'els' in 'A', which is of non-class type 'Array [(((unsigned int)(((int)a) + -0x000000001)) + 1)] {aka Array [(((unsigned int)(((int)a) + -0x000000001)) + 1)]}'</p>
</blockquote>

<p>Code:</p>

<pre><code>Array arrayInp()
/* Create 2 vectors by the length defined by the user*/
{
int a,b,i;

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;

Array A[a],B[b];

cout&lt;&lt;"insert first array:";
for (int i=0;i&lt;a;i++)
{
    cin&gt;&gt;A.els[i];
}


cout&lt;&lt;"insert second array:";
for (int i=0;i&lt;a;i++)
    {
        cin&gt;&gt;B.els[i];
    }
return A,B;
}
</code></pre>

<p>One more error, my return isent right can someone explain me a way how to return the array structures from the functions?
after build errors:</p>

<blockquote>
  <p>..\scr\main.cpp:32:10: warning: left operand of comma operator has no effect [-Wunused-value]
  ..\scr\main.cpp:32:10: error: could not convert '(0, ((Array*)(&amp; B)))' from 'Array*' to 'Array'
  ..\scr\main.cpp:11:10: warning: unused variable 'i' [-Wunused-variable]
  ..\scr\main.cpp:33:1: warning: control reaches end of non-void function [-Wreturn-type]</p>
</blockquote>
