记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:11:14: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   11 |         term=pow(-1,n+1)/(2*n-1);
      |              ^~~
/in/foo.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
/in/foo.c:11:14: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   11 |         term=pow(-1,n+1)/(2*n-1);
      |              ^~~
/in/foo.c:11:14: note: include '<math.h>' or provide a declaration of 'pow'
/in/foo.c:14:15: warning: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
   14 |         while(fabs(term)>=1e-8);
      |               ^~~~
/in/foo.c:14:15: note: include '<math.h>' or provide a declaration of 'fabs'
/in/foo.c:14:15: warning: incompatible implicit declaration of built-in function 'fabs' [-Wbuiltin-declaration-mismatch]
/in/foo.c:14:15: note: include '<math.h>' or provide a declaration of 'fabs'
# 状态 耗时 内存占用
#1 Wrong Answer 897ms 416.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-11-16 16:50:07
评测时间
2025-11-16 16:50:07
评测机
分数
0
总耗时
897ms
峰值内存
416.0 KiB