记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:5: error: unknown type name 'dounle'; did you mean 'double'?
    5 |     dounle a,b,c,d,e;
      |     ^~~~~~
      |     double
/in/foo.c:6:13: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'int *' [-Wformat=]
    6 |     scanf("%f,%f,%f",&a,&b,&c);
      |            ~^        ~~
      |             |        |
      |             float *  int *
      |            %d
/in/foo.c:6:16: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'int *' [-Wformat=]
    6 |     scanf("%f,%f,%f",&a,&b,&c);
      |               ~^        ~~
      |                |        |
      |                float *  int *
      |               %d
/in/foo.c:6:19: warning: format '%f' expects argument of type 'float *', but argument 4 has type 'int *' [-Wformat=]
    6 |     scanf("%f,%f,%f",&a,&b,&c);
      |                  ~^        ~~
      |                   |        |
      |                   float *  int *
      |                  %d
/in/foo.c:9:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
    9 |                 printf("%.2f",(-c/b));
      |                         ~~~^  ~~~~~~
      |                            |     |
      |                            |     int
      |                            double
      |                         %.2d
/in/foo.c:13:29: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   13 |                  printf("%.2f",-b/2/a);
      |                          ~~~^  ~~~~~~
      |                             |      |
      |                             double int
      |                          %.2d
/in/foo.c:17:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   17 |         printf("%.2f+%.2fi\n%.2f-%.2fi",(-b/2/a),(e/2/a),(-b/2/a),(e/2/a));
      |                 ~~~^                    ~~~~~~~~
      |                    |                         |
      |                    double                    int
      |                 %.2d
/in/foo.c:17:25: warning: format '%f' expects argument of type 'double', but argument 3 has type 'int' [-Wformat=]
   17 |         printf("%.2f+%.2fi\n%.2f-%.2fi",(-b/2/a),(e/2/a),(-b/2/a),(e/2/a));
      |                      ~~~^                        ~~~~~~~
      |                         |                            |
      |                         double                       int
      |                      %.2d
/in/foo.c:17:32: warning: format '%f' expects argument of type 'double', but argument 4 has type 'int' [-Wformat=]
   17 |         printf("%.2f+%.2fi\n%.2f-%.2fi",(-b/2/a),(e/2/a),(-b/2/a),(e/2/a));
      |                             ~~~^                         ~~~~~~~~
      |                                |                              |
      |                                double                         int
      |                             %.2d
/in/foo.c:17:37: warning: format '%f' expects argument of type 'double', but argument 5 has type 'int' [-Wformat=]
   17 |         printf("%.2f+%.2fi\n%.2f-%.2fi",(-b/2/a),(e/2/a),(-b/2/a),(e/2/a));
      |                                  ~~~^                             ~~~~~~~
      |                                     |                                 |
      |                                     double                            int
      |                                  %.2d

信息

递交者
类型
自测
语言
C
递交时间
2026-10-31 09:43:55
评测时间
2026-10-31 09:43:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes