title: cpp(15): error C2182: 'input' : illegal use of type 'void'
body: <p>after making a fresh start on a new program i made for learning how arrays work in combinatio0n with void ive ran into the following problem.</p>
  
  <pre><code>cpp(15): error C2182: 'input' : illegal use of type 'void'
  </code></pre>
  
  <p>Does anyone know what causes this? I am new to the concept of void and array.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  using namespace std;
  void input (int x );
  
  int main()
  {
      int x = 0;
      int a[ 5 ];
      input ( a[ 5 ]);
      {
          void input(x);
          for(int i = 1; i &lt; 5; i++) {
              cin &gt;&gt; a [ i ];
          }
          cin.get();
          cout &lt;&lt; a [ 3 ];
          cin.get();
      }
  }
  </code></pre>