记录详情

Compile Error

/in/foo.c: In function 'calculate':
/in/foo.c:9:6: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    y=sqrt(5*x+10);
      ^~~~
/in/foo.c:9:6: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:9:6: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:12:14: error: expected expression before 'double'
       return double y;
              ^~~~~~
/in/foo.c:3:10: warning: variable 'y' set but not used [-Wunused-but-set-variable]
   double y;
          ^
/in/foo.c:13:4: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

信息

递交者
类型
自测
语言
C
递交时间
2024-10-29 16:52:11
评测时间
2024-10-29 16:52:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes