记录详情

Accepted

foo.c: In function 'main':
foo.c:5:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%s", &num);
     ^~~~~
foo.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:5:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[15]' [-Wformat=]
     scanf("%s", &num);
            ~^   ~~~~
foo.c:7:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
         printf("-");
         ^~~~~~
foo.c:7:9: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:7:9: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:19:9: warning: incompatible implicit declaration of built-in function 'printf'
         printf("0");
         ^~~~~~
foo.c:19:9: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:27:13: warning: incompatible implicit declaration of built-in function 'printf'
             printf("%c", new_num[i]);
             ^~~~~~
foo.c:27:13: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:30:5: warning: incompatible implicit declaration of built-in function 'printf'
     printf("\n");
     ^~~~~~
foo.c:30:5: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
A4-2 回文数专题:反数
比赛
2021年新生赛第二场
语言
C
递交时间
2021-08-29 18:42:08
评测时间
2021-08-29 18:42:08
评测机
分数
100
总耗时
4ms
峰值内存
256.0 KiB