记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:14:20: error: invalid suffix ")" on integer constant
   14 |         if (delta >0)
      |                    ^~~
/in/foo.c:14:23: error: expected ')' before 'double'
   14 |         if (delta >0)
      |            ~          ^
      |                       )
   15 |             double x1 = (-b + sqrt(delta)) / (2 * a);
      |             ~~~~~~     
/in/foo.c:19:9: error: expected expression before '}' token
   19 |         } else if (delta == 0) {
      |         ^
/in/foo.c:19:11: error: 'else' without a previous 'if'
   19 |         } else if (delta == 0) {
      |           ^~~~
/in/foo.c:22:16: error: '\U0000ff5b' undeclared (first use in this function)
   22 |         } else {
      |                ^~
/in/foo.c:22:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:22:18: error: expected ';' before 'double'
   22 |         } else {
      |                  ^
      |                  ;
   23 |             double real = -b / (2 * a);
      |             ~~~~~~
/in/foo.c:25:38: error: 'real' undeclared (first use in this function)
   25 |             printf("%.2lf+%.2lfi\n", real, imag);
      |                                      ^~~~
/in/foo.c: At top level:
/in/foo.c:28:5: error: expected identifier or '(' before '}' token
   28 |     }
      |     ^
/in/foo.c:29:5: error: expected identifier or '(' before 'return'
   29 |     return 0;
      |     ^~~~~~
/in/foo.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^

信息

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