foo.c: In function 'Prime':
foo.c:8:20: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
8 | for(int i=2;i<=sqrt(x);i++)
| ^~~~
foo.c:8:20: warning: incompatible implicit declaration of built-in function 'sqrt'
foo.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
1 | #include<stdio.h>//绗竴棰?#include<math.h>
+++ |+#include <math.h>
2 | int Prime(int x)
foo.c: In function 'main':
foo.c:23:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d%d",&a,&b);
| ^~~~~~~~~~~~~~~~~~~
foo.c:26:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&m[i]);
| ^~~~~~~~~~~~~~~~~
foo.c:34:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d",&n[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务