/in/foo.c:2:1: warning: data definition has no type or storage class
PrimeCount(int a[], int n);
^~~~~~~~~~
/in/foo.c:2:1: warning: type defaults to 'int' in declaration of 'PrimeCount' [-Wimplicit-int]
/in/foo.c:16:1: warning: return type defaults to 'int' [-Wimplicit-int]
PrimeCount(int a[], int n) {
^~~~~~~~~~
/in/foo.c: In function 'PrimeCount':
/in/foo.c:21:20: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
for (j = 2; j <= sqrt(a[i]); j++) {
^~~~
/in/foo.c:21:20: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:21:20: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:25:11: warning: incompatible implicit declaration of built-in function 'sqrt'
if (j > sqrt(a[i]))
^~~~
/in/foo.c:25:11: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^