title: variable or field 'Function' declared void
body: <p>I saw a lot of similar questions or same topics, but no answer for my situation (or I am dumb, don't blame me please). I am a begginer and self - learner, so sorry if I am not skilled enough to answer this question by myself.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  void Skaiciavimai(double kiek_bulviu, int talkininkai, int &amp; dienos,
      int &amp; visi_talkininkai, double &amp; viso_bulviu,
      double &amp; vieno_vidurkis);
  
  int main()
  {
      double atsk = 100, bulves[100], talk[1000], kiek_bulviu = 0, talkininkai = 0;
      int dienos = 0, visi_talkininkai = 0;
      double viso_bulviu = 0, vieno_vidurkis = 0;
  
      for (int i = 0; i &lt; 1000; i++) {
          cin &gt;&gt; bulves[i];
          kiek_bulviu = kiek_bulviu + bulves[i];
          if (bulves[i] == 0) {
              i = 1000;
          }
          else {
              cin &gt;&gt; talk[i];
              talkininkai = talkininkai + talk[i];
              dienos++;
          }
      }
      void Skaiciavimai(kiek_bulviu, talkininkai, dienos, visi_talkininkai, viso_bulviu, vieno_vidurkis);
      cout &lt;&lt; dienos &lt;&lt; endl;
      cout &lt;&lt; viso_bulviu;
      cout &lt;&lt; vieno_vidurkis;
      return 0;
  }
  void Skaiciavimai(double kiek_bulviu, int talkininkai, int &amp; dienos,
      int &amp; visi_talkininkai, double &amp; viso_bulviu,
      double &amp; vieno_vidurkis) {
      visi_talkininkai = talkininkai;
      viso_bulviu = kiek_bulviu;
      vieno_vidurkis = viso_bulviu / visi_talkininkai;
  }
  </code></pre>