欢迎24级新生
运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
9165 cmcm 1001 - [在线测评解答教程] 求和 编译错误 0 0 MS 0 KB C 112 4年前
暂时无法获取本题测试点详情。

Main.c: In function ‘main’:
Main.c:4:2: error: unknown type name ‘imt’; did you mean ‘int’?
4 | imt n;
| ^~~
| int
Main.c:5:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
5 | if(scanf("%d",n) != EOF)
| ~^ ~
| | |
| | int
| int *
Main.c:7:8: error: ‘o’ undeclared (first use in this function)
7 | return o;
| ^
Main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in