记录详情

Compile Error

foo.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
foo.c: In function 'main':
foo.c:11:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   11 |         scanf("%d%d%d", &a, &b, &c);
      |         ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
foo.c:11:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   11 |         scanf("%d%d%d", &a, &b, &c);
      |         ^~~~~
foo.c:11:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:13:17: warning: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
   13 |                 sort(&a, &b);
      |                 ^~~~
foo.c:18:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |         printf("%d%d%d", a, b, c);
      |         ^~~~~~
foo.c:18: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]
foo.c:18:9: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
语言
C
递交时间
2022-10-05 18:17:14
评测时间
2022-10-05 18:17:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes