记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:13: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   10 |         y = sqrt(5 * x + 10);
      |             ^~~~
/in/foo.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | int main() {
/in/foo.c:10:13: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
   10 |         y = sqrt(5 * x + 10);
      |             ^~~~
/in/foo.c:10:13: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:11:16: warning: statement with no effect [-Wunused-value]
   11 |     } else { x >= 25
      |              ~~^~~~~
/in/foo.c:11:21: error: expected ';' before 'y'
   11 |     } else { x >= 25
      |                     ^
      |                     ;
   12 |         y = x * x * x;
      |         ~            
/in/foo.c: At top level:
/in/foo.c:17:1: error: stray '\302' in program
   17 | <U+00A0>
      | ^~~~~~~~

信息

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