记录详情

Compile Error

foo.c:1:1: error: unknown type name 'nt'; did you mean 'int'?
    1 | nt main()
      | ^~
      | int
foo.c: In function 'main':
foo.c:11:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |     scanf("%d",&a);
      |     ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | nt main()
foo.c:11:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |     scanf("%d",&a);
      |     ^~~~~
foo.c:11:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:13:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |         printf("2+2=4");
      |         ^~~~~~
foo.c:13: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]
foo.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:40:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   40 |                         printf("%d+%d=%d\n",b,c,a);
      |                         ^~~~~~
foo.c:40:25: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
2023暑期青少年社团(训练赛)
语言
C
递交时间
2023-08-16 14:57:51
评测时间
2023-08-16 14:57:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes