运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
601449 wenhuang 1047 - 盘古开天地 编译错误 0 0 MS 0 KB C 136 4个月前
暂时无法获取本题测试点详情。

Main.c: In function 'main':
Main.c:7:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
7 | printf(18000);
| ^~~~~
| |
| int
In file included from /usr/include/fortify/stdio.h:23,
from Main.c:1:
/usr/include/stdio.h:109:12: note: expected 'const char * restrict' but argument is of type 'int'
109 | int printf(const char *__restrict, ...);
| ^
Main.c:8:4: error: expected '}' before 'else'
8 | else{
| ^~~~
Main.c:9:8: warning: argument 1 null where non-null expected [-Wnonnull]
9 | printf(0);
| ^~~~~~
/usr/include/stdio.h:109:5: note: in a call to function 'printf' declared 'nonnull'
109 | int printf(const char *__restrict, ...);
| ^~~~~~
Main.c:11:1: error: expected declaration or statement at end of input
11 | }
| ^