记录详情

Accepted

foo.c: In function 'evaluatePolyLinkList':
foo.c:42:42: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
   42 |         result += current->coefficient * pow(x, current->exponent);
      |                                          ^~~
foo.c:3:1: note: include '<math.h>' or provide a declaration of 'pow'
    2 | #include <stdlib.h>
  +++ |+#include <math.h>
    3 | 
foo.c:42:42: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
   42 |         result += current->coefficient * pow(x, current->exponent);
      |                                          ^~~
foo.c:42:42: note: include '<math.h>' or provide a declaration of 'pow'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 204.0 KiB
#4 Accepted 2ms 284.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1036 OO8-1 一元多项式链表类的求值
语言
C
递交时间
2023-12-05 12:55:37
评测时间
2023-12-05 12:55:37
评测机
分数
100
总耗时
11ms
峰值内存
284.0 KiB