记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
比赛
南师大2021程序设计基础课程第四次测验 (2021-12-23)
语言
C
递交时间
2021-12-23 13:58:34
评测时间
2021-12-23 13:58:34
评测机
分数
100
总耗时
14ms
峰值内存
384.0 KiB