Compile Error
/in/foo.c: In function 'main':
/in/foo.c:8:12: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
8 | for(int i=1;i<=n;i++);
| ^~~
/in/foo.c:9:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
9 | {
| ^
/in/foo.c:10:26: error: 'i' undeclared (first use in this function)
10 | fact*=i;
| ^
/in/foo.c:10:26: note: each undeclared identifier is reported only once for each function it appears in
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-11-20 14:43:09
- 评测时间
- 2025-11-20 14:43:09
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes