记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    8 |         scanf("%d %d",min,max);
      |                ~^     ~~~
      |                 |     |
      |                 int * int
foo.c:8:20: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
    8 |         scanf("%d %d",min,max);
      |                   ~^      ~~~
      |                    |      |
      |                    int *  int
foo.c:12:24: error: expected ';' before '}' token
   12 |                 {num1++}
      |                        ^
      |                        ;
foo.c:14:24: error: expected ';' before '}' token
   14 |                 {num1++}
      |                        ^
      |                        ;
foo.c:16:24: error: expected ';' before '}' token
   16 |                 {num1++}
      |                        ^
      |                        ;
foo.c:18:24: error: expected ';' before '}' token
   18 |                 {num1++}
      |                        ^
      |                        ;
foo.c:20:24: error: expected ';' before '}' token
   20 |                 {num1++}
      |                        ^
      |                        ;
foo.c:22:24: error: expected ';' before '}' token
   22 |                 {num1++}
      |                        ^
      |                        ;
foo.c:24:24: error: expected ';' before '}' token
   24 |                 {num1++}
      |                        ^
      |                        ;
foo.c:26:18: error: 'countine' undeclared (first use in this function)
   26 |                 {countine;}
      |                  ^~~~~~~~
foo.c:26:18: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1020 数字统计
语言
C
递交时间
2022-08-27 21:00:16
评测时间
2022-08-27 21:01:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes