记录详情

Compile Error

foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
foo.c: In function 'main':
foo.c:21:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   21 |         scanf("%d", &x);
      |         ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
foo.c:21:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   21 |         scanf("%d", &x);
      |         ^~~~~
foo.c:21:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:28:33: error: 'a' undeclared (first use in this function)
   28 |                                 a[i]++;
      |                                 ^
foo.c:28:33: note: each undeclared identifier is reported only once for each function it appears in
foo.c:40:25: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   40 |                         printf("%d ", j);
      |                         ^~~~~~
foo.c:40:25: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:40:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
foo.c:40:25: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
5-5 统计素数因子
语言
C
递交时间
2023-11-28 15:40:22
评测时间
2023-11-28 15:40:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes