记录详情

Compile Error

/in/foo.c:1:2: error: invalid preprocessing directive #intclude
 #intclude<stdio.h>
  ^~~~~~~~
/in/foo.c: In function 'main':
/in/foo.c:5:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%d",&x);
     ^~~~~
/in/foo.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:14:13: error: 'o' undeclared (first use in this function)
     if(cnt==o)
             ^
/in/foo.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
         printf("Yes");
         ^~~~~~
/in/foo.c:15:9: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:17:9: warning: incompatible implicit declaration of built-in function 'printf'
         printf("No");
         ^~~~~~
/in/foo.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
A3-2 素数专题:素数判断
比赛
泰院2401程序设计基础作业赛第二场
语言
C
递交时间
2024-10-28 16:52:24
评测时间
2024-10-28 16:52:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes