记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:12:21: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   12 |                 y=2*pow(x,2)+4*x-5;
      |                     ^~~
/in/foo.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main()
/in/foo.c:12:21: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   12 |                 y=2*pow(x,2)+4*x-5;
      |                     ^~~
/in/foo.c:12:21: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:17:19: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   17 |                 y=sqrt(5*x+10);
      |                   ^~~~
/in/foo.c:17:19: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:17:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
/in/foo.c:17:19: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c:22:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   22 |                 y=pow(x,3);
      |                   ^~~
/in/foo.c:22:19: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:5:11: warning: 'x' is used uninitialized [-Wuninitialized]
    5 |         if(x>=-100&&x<0)
      |           ^
/in/foo.c:4:15: note: 'x' was declared here
    4 |         float x,y;
      |               ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-11-06 17:05:50
评测时间
2025-11-06 17:05:50
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB