记录详情

Wrong Answer

foo.c: In function ‘main’:
foo.c:5:12: warning: zero-length gnu_printf format string [-Wformat-zero-length]
    5 |     printf("");
      |            ^~
foo.c:10:43: warning: implicit declaration of function ‘pow’ [-Wimplicit-function-declaration]
   10 |     long long newNum = digit * (long long)pow(10, (int)log10(num) + 1) + num;
      |                                           ^~~
foo.c:2:1: note: include ‘<math.h>’ or provide a declaration of ‘pow’
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
foo.c:10:43: warning: incompatible implicit declaration of built-in function ‘pow’ [-Wbuiltin-declaration-mismatch]
   10 |     long long newNum = digit * (long long)pow(10, (int)log10(num) + 1) + num;
      |                                           ^~~
foo.c:10:43: note: include ‘<math.h>’ or provide a declaration of ‘pow’
foo.c:10:56: warning: implicit declaration of function ‘log10’ [-Wimplicit-function-declaration]
   10 |     long long newNum = digit * (long long)pow(10, (int)log10(num) + 1) + num;
      |                                                        ^~~~~
foo.c:10:56: note: include ‘<math.h>’ or provide a declaration of ‘log10’
foo.c:10:56: warning: incompatible implicit declaration of built-in function ‘log10’ [-Wbuiltin-declaration-mismatch]
foo.c:10:56: note: include ‘<math.h>’ or provide a declaration of ‘log10’
# 状态 耗时 内存占用
#1 Wrong Answer Read 12345, expect 234501. 1ms 320.0 KiB

信息

递交者
类型
自测
题目
1-1 数字循环左移
语言
C
递交时间
2024-08-18 12:37:25
评测时间
2024-08-18 12:37:25
评测机
分数
0
总耗时
1ms
峰值内存
320.0 KiB