记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:18: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
    6 |         scanf("%1f,%2f,%3f",&a,&b,&c);
      |                ~~^          ~~
      |                  |          |
      |                  float *    double *
      |                %1lf
/in/foo.c:6:22: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double *' [-Wformat=]
    6 |         scanf("%1f,%2f,%3f",&a,&b,&c);
      |                    ~~^         ~~
      |                      |         |
      |                      float *   double *
      |                    %2lf
/in/foo.c:6:26: warning: format '%f' expects argument of type 'float *', but argument 4 has type 'double *' [-Wformat=]
    6 |         scanf("%1f,%2f,%3f",&a,&b,&c);
      |                        ~~^        ~~
      |                          |        |
      |                          float *  double *
      |                        %3lf
/in/foo.c:14:34: warning: implicit declaration of function 'sprt' [-Wimplicit-function-declaration]
   14 |                           x1=(-b+sprt(delta))/2*a;
      |                                  ^~~~
/in/foo.c:25:25: error: expected expression before '=' token
   25 |                   return=0;
      |                         ^
/in/foo.c:26:18: error: expected declaration or statement at end of input
   26 |                  }
      |                  ^

信息

递交者
类型
自测
语言
C
递交时间
2025-12-23 16:53:33
评测时间
2025-12-23 16:53:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes