记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    7 |         scanf("%d",i)
      |                ~^  ~
      |                 |  |
      |                 |  int
      |                 int *
foo.c:7:22: error: expected ';' before 'for'
    7 |         scanf("%d",i)
      |                      ^
      |                      ;
    8 |         for(int x=3; x<=i; x++)
      |         ~~~           
foo.c:5:13: warning: unused variable 'cnt' [-Wunused-variable]
    5 |         int cnt=0;
      |             ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A5-2 超级素数的个数
语言
C
递交时间
2023-10-01 15:38:39
评测时间
2023-10-01 15:38:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes