记录详情

Wrong Answer

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)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 4, expect 3. 2ms 384.0 KiB
#2 Wrong Answer Read 12, expect 7. 2ms 256.0 KiB
#3 Wrong Answer Read 19, expect 12. 2ms 256.0 KiB
#4 Wrong Answer Read 19, expect 12. 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
A9-1 数组中的素数个数
语言
C
递交时间
2021-12-23 22:20:31
评测时间
2021-12-23 22:20:31
评测机
分数
20
总耗时
13ms
峰值内存
384.0 KiB