记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:32: warning: implicit declaration of function 'power' [-Wimplicit-function-declaration]
   12 |                         x1=(-b+power(delta,0.5))/(2*a);
      |                                ^~~~~
/in/foo.c:14:36: warning: format '%f' expects argument of type 'double', but argument 2 has type 'char *' [-Wformat=]
   14 |                         printf("%.2f\n","%.2f\n",x1,x2);}
      |                                 ~~~^    ~~~~~~~~
      |                                    |    |
      |                                    |    char *
      |                                    double
      |                                 %.2s
/in/foo.c:14:32: warning: too many arguments for format [-Wformat-extra-args]
   14 |                         printf("%.2f\n","%.2f\n",x1,x2);}
      |                                ^~~~~~~~
/in/foo.c: At top level:
/in/foo.c:24:17: error: expected identifier or '(' before 'return'
   24 |                 return 0;
      |                 ^~~~~~
/in/foo.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^

信息

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