记录详情

Accepted

/in/foo.c: In function 'isPalindrome':
/in/foo.c:10:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
     int* digits = (int*)malloc(digitCount * sizeof(int));
                         ^~~~~~
/in/foo.c:10:25: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:10:25: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:24:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
     free(digits);
     ^~~~
/in/foo.c:24:5: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:24:5: note: include '<stdlib.h>' or provide a declaration of 'free'
/in/foo.c: In function 'main':
/in/foo.c:31:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
     scanf("%d", &num);
     ^~~~~
/in/foo.c:31:5: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:31:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:34:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
         printf("Yes\n");
         ^~~~~~
/in/foo.c:34:9: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:34:9: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:36:9: warning: incompatible implicit declaration of built-in function 'printf'
         printf("No\n");
         ^~~~~~
/in/foo.c:36:9: note: include '<stdio.h>' or provide a declaration of 'printf'
# 状态 耗时 内存占用
#1 Accepted 0ms 200.0 KiB
#2 Accepted 0ms 248.0 KiB
#3 Accepted 0ms 248.0 KiB
#4 Accepted 0ms 248.0 KiB
#5 Accepted 0ms 324.0 KiB

信息

递交者
类型
递交
题目
A4-3 回文数专题:回文数判断
比赛
泰院2405作业赛第三场
语言
C
递交时间
2024-11-05 07:55:26
评测时间
2024-11-05 07:55:26
评测机
分数
100
总耗时
4ms
峰值内存
324.0 KiB