记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:21: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
    8 |                 b = pow(2, d - 1 - i);
      |                     ^~~
foo.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | int main() {
foo.c:8:21: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
    8 |                 b = pow(2, d - 1 - i);
      |                     ^~~
foo.c:8:21: note: include '<math.h>' or provide a declaration of 'pow'
foo.c:7:24: warning: 'i' is used uninitialized [-Wuninitialized]
    7 |                 a = str[i] - 48;
      |                     ~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 42. 1ms 256.0 KiB
#2 Wrong Answer Read 0, expect 1048575. 1ms 256.0 KiB
#3 Wrong Answer Read 0, expect 298. 2ms 256.0 KiB
#4 Wrong Answer Read 0, expect 1109. 1ms 256.0 KiB
#5 Wrong Answer Read 0, expect 4194304. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1081 xf1-4进制转换2
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 09:46:16
评测时间
2022-08-27 09:46:16
评测机
分数
0
总耗时
7ms
峰值内存
256.0 KiB