title: Previous declaration and conflicting types
body: <p>Ive got a problem. I cant compile my program even though everything seems fine. It comes up with those errors&quot;:1.c:6:5: error: conflicting types for ‘sumaa’
  int sumaa(int tab[],int a){
  ^~~~~
  1.c:3:5: note: previous declaration of ‘sumaa’ was here
  int sumaa(int,int);
  ^~~~~
  I dont know why. Here's the code:</p>
  <pre><code>#include&lt;stdio.h&gt;
  
  int sumaa(int,int);
  int suma(int*,int*);
  
  int sumaa(int tab[],int a){
      int sum = 0;
      for(int i= 0; i&lt;a;i++)
          sum+= tab[i];
      return sum;
  }
  
  int suma(int* a,int* b){
      int  suma = 0;
      int* pt;
      for (pt = a; pt != b; pt++)
          suma+=*pt;
      return suma;
  }
  
  int main()
  {
      int n;
      scanf(&quot;%d&quot;,&amp;n);
      int tab[n];
      for(int i = 0; i&lt;n;i++){
          scanf(&quot;%d&quot;,&amp;tab[i]);
      }
      sumaa(tab,n);
      suma(tab,tab+n);
      return 0;
  }
  </code></pre>