记录详情

Wrong Answer

foo.c: In function ‘main’:
foo.c:5:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    5 |     scanf("%d", &n);
      |     ^~~~~
foo.c:2:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | int main() {
foo.c:5:5: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d", &n);
      |     ^~~~~
foo.c:5:5: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
foo.c:8:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    8 |         printf("No\n");
      |         ^~~~~~
foo.c:8:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:8:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
foo.c:8:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:13:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
   13 |         printf("yes\n");
      |         ^~~~~~
foo.c:13:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:18:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
   18 |         printf("No\n");
      |         ^~~~~~
foo.c:18:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:31:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
   31 |         printf("yes\n");
      |         ^~~~~~
foo.c:31:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
foo.c:33:9: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
   33 |         printf("No\n");
      |         ^~~~~~
foo.c:33:9: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
# 状态 耗时 内存占用
#1 Accepted 1ms 320.0 KiB
#2 Wrong Answer Read yes, expect Yes. 1ms 288.0 KiB
#3 Accepted 1ms 288.0 KiB
#4 Wrong Answer Read yes, expect Yes. 1ms 556.0 KiB
#5 Wrong Answer Read yes, expect Yes. 1ms 552.0 KiB

信息

递交者
类型
递交
题目
A3-2 素数专题:素数判断
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-19 23:51:53
评测时间
2024-08-19 23:51:53
评测机
分数
40
总耗时
6ms
峰值内存
556.0 KiB