记录详情

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,%d,%d",a,b,c)
      |                ~^        ~
      |                 |        |
      |                 int *    int
foo.c:7:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
    7 |         scanf("%d,%d,%d",a,b,c)
      |                   ~^       ~
      |                    |       |
      |                    int *   int
foo.c:7:23: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=]
    7 |         scanf("%d,%d,%d",a,b,c)
      |                      ~^      ~
      |                       |      |
      |                       int *  int
foo.c:7:32: error: expected ‘;’ before ‘if’
    7 |         scanf("%d,%d,%d",a,b,c)
      |                                ^
      |                                ;
    8 |         if(a>c&a<B)
      |         ~~                      

信息

递交者
类型
自测
题目
A1-2 分支结构练习:三数的特征值
语言
C
递交时间
2024-08-18 18:37:43
评测时间
2024-08-18 18:37:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes