记录详情

Accepted

foo.c: In function 'main':
foo.c:11:5: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   11 |   m=sqrt(j)+1;
      |     ^~~~
foo.c:11:5: 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>
    2 | 
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",&i);
      |  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-02-28 13:05:23
评测时间
2022-02-28 13:05:23
评测机
分数
100
总耗时
10ms
峰值内存
256.0 KiB