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

Main.c: In function ‘main’:
Main.c:5:11: warning: self-comparison always evaluates to true [-Wtautological-compare]
5 | for(n=1;n<=n;n++)
| ^~
Main.c:6:9: error: ‘s’ undeclared (first use in this function)
6 | s=s+n;
| ^
Main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in