记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |  scanf("%d",&j);
      |  ^~~~~
foo.c:6:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<math.h>
  +++ |+#include <stdio.h>
    2 | int main()
foo.c:20:12: error: 'l' undeclared (first use in this function)
   20 |  for(y=2;y<l;y++)
      |            ^
foo.c:20:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:24:4: error: 'O' undeclared (first use in this function)
   24 |  k=O;
      |    ^
foo.c:30:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   30 |   printf("%d+%d=%d\n",n,k,j);
      |   ^~~~~~
foo.c:30:3: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:30:3: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-03-01 00:39:07
评测时间
2022-03-01 00:39:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes