title: Runtime Error(SIGSEGV)
body: <p>I am new to coding. When I am submitting my code in codecheff its giving "Runtime Error(SIGSEGV)". I Don't know what's the problem please help. Thanks in advance.</p>
  
  <pre><code>int call(int *x, int m)
  {
     int b[10], y, z;
     for(y = 0 ; y&lt;m ; y++)
     {
        int sum = 0;
        z = *x;
        while(z&gt;0) {
           sum = sum + z/5;
           z=z/5;  
        }
        b[y] = sum;
        x++;
     }
  
     for(y = 0 ; y&lt;m ; y++)
        printf("\n%d", b[y]);
  }
  
  int main() 
  {
     int n=0, i=0, a[10]; 
     scanf("%d", &amp;n);
     for(i=0;i&lt;n;i++){
        scanf("%d", &amp;a[i]);
     }
     call(a, n);
     return 0;   
  }
  </code></pre>