title: why this error coming when compiling how to solve implicit declaration of function?
body: <pre><code>    #include&lt;stdio.h&gt;
      #include&lt;math.h&gt;
      float val [4][2],a[4];
      int j,i,y;
      
      float cordianation_entry() {  
          printf(&quot;enter your cordianation-&quot;);
          scanf(&quot;%f,%f&quot;,&amp;val[0][0],&amp;val[0][1]);
          for(j=1;j&lt;4;j++) {
              printf(&quot;enter station %d coordination-&quot;,j);
              scanf(&quot;%f,%f&quot;,&amp;val[j][0],&amp;val[j][1]);
         }    
      }
      
      float results_analysis() {
        
         for(i=1;i&lt;4;i++) { 
          a[i] = (pow((val[i][0]-val[0][0]),2)) + (pow((val[i][1]-val[0][1]),2));
          a[i]=sqrt(a[i]);
          printf(&quot;\n*distance to station %d is %f\n&quot;,i,a[i]);
          if(a[i]&lt;100)
          printf(&quot;\tDistance is Low&quot;);
          else if(a[i]&lt;1000 &amp;&amp; a[i]&gt;=100)
          printf(&quot;\tDistance is Moderate&quot;);
          else 
          printf(&quot;\tDistance is High&quot;);
         }
  </code></pre>
  <p>compiler dose not read this minimum function<br />
  float minimum() {</p>
  <pre><code>        if(a[1]&lt;a[2]&amp;&amp;a[1]&lt;a[3])
          printf(&quot;station 1 is the nearest&quot;);
          else if(a[2]&lt;a[3]&amp;&amp;a[2]&lt;a[1])
          printf(&quot;station 2 is the nearest&quot;);
          else if(a[3]&lt;a[1]&amp;&amp;a[3]&lt;a[2])
          printf(&quot;station 2 is the nearest&quot;);
      }
      
      
      
      
      }
      
  </code></pre>
  <p>compiler dose not detect minimum function how to solve it<br />
  when it compile it shows an error message impilicit decleration of function minimum</p>
  <pre><code>void main() {   
     cordianation_entry();
     results_analysis();
     minimum();
  }
  </code></pre>