foo.c: In function 'Prime':
foo.c:29:12: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
29 | for(i=2;i<sqrt(x);i++)
| ^~~~
foo.c:29:12: warning: incompatible implicit declaration of built-in function 'sqrt'
foo.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
2 | #include <string.h>
+++ |+#include <math.h>
3 | int PrimeCount(int a[],int n);
foo.c: In function 'main':
foo.c:9:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d%d",&n1,&n2);
| ^~~~~~~~~~~~~~~~~~~~~
foo.c:11:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d",&a[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%d",&b[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务