记录详情

Accepted

foo.c: In function 'main':
foo.c:13:33: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   13 |                         int n = sqrt(xxx);
      |                                 ^~~~
foo.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
foo.c:13:33: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
   13 |                         int n = sqrt(xxx);
      |                                 ^~~~
foo.c:13:33: note: include '<math.h>' or provide a declaration of 'sqrt'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 4ms 284.0 KiB
#4 Accepted 4ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
A5-2 超级素数的个数
比赛
2023 程序设计与竞赛(作业3:中秋和国庆)
语言
C
递交时间
2023-10-01 15:05:59
评测时间
2023-10-01 15:05:59
评测机
分数
100
总耗时
16ms
峰值内存
284.0 KiB