记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:26:25: warning: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   26 |                         print("%.2f\n,%.2f",x1,x2);
      |                         ^~~~~
      |                         lrint
/in/foo.c:32:25: warning: implicit declaration of function 'peintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   32 |                         peintf("%.2f",x1);
      |                         ^~~~~~
      |                         printf
/in/foo.c:36:25: error: 'real' undeclared (first use in this function)
   36 |                         real = -b / (2 * a);
      |                         ^~~~
/in/foo.c:36:25: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:37:13: error: 'imag' undeclared (first use in this function)
   37 |             imag = sqrt(-d) / (2 * a);
      |             ^~~~
/in/foo.c:14:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
   14 |         else if(b==0)
      |         ^~~~
/in/foo.c:14:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
/in/foo.c:42:1: error: expected declaration or statement at end of input
   42 | }
      | ^

信息

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