Compile Error
/in/foo.c: In function 'main':
/in/foo.c:6:23: error: expected ';' before 'for'
6 | scanf("%d",&n)
| ^
| ;
7 | for(i=2;i<=n-1;i++);
| ~~~
/in/foo.c:10:48: error: expected ';' before 'return'
10 | printf("%d is not a primer!",n)
| ^
| ;
11 | return 0
| ~~~~~~
/in/foo.c:13:36: error: expected ';' at end of input
13 | printf("%d is a primer!",n)
| ^
| ;
/in/foo.c:13:9: error: expected declaration or statement at end of input
13 | printf("%d is a primer!",n)
| ^~~~~~
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2025-11-13 14:13:43
- 评测时间
- 2025-11-13 14:13:43
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes