记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:11: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   int n = sqrt(x);
           ^~~~
/in/foo.c:11:11: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:11:11: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:20:4: error: 'cnt' undeclared (first use in this function)
    cnt = cnt + 1;
    ^~~
/in/foo.c:20:4: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
递交
题目
A3-3 素数专题:素数个数
语言
C
递交时间
2023-10-05 00:36:33
评测时间
2023-10-05 00:36:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes