记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",x);
          ^
/in/foo.c:10:9: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   int n=sqrt(x1);
         ^~~~
/in/foo.c:10:9: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:10:9: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:14:6: error: 'i' undeclared (first use in this function)
   if(i>n)
      ^
/in/foo.c:14:6: note: each undeclared identifier is reported only once for each function it appears in

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
语言
C
递交时间
2023-10-13 19:33:24
评测时间
2023-10-13 19:33:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes