记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:17: error: expected expression before 'int'
   11 |                 int j=1;
      |                 ^~~
/in/foo.c:12:16: error: 'j' undeclared (first use in this function)
   12 |         switch(j)
      |                ^
/in/foo.c:12:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   15 |         if(n%i==0)
      |         ^~
/in/foo.c:16:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   16 |         printf("%d is not a primer!",n);break;
      |                                         ^~~~~

信息

递交者
类型
自测
语言
C
递交时间
2025-11-14 18:50:47
评测时间
2025-11-14 18:50:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes