记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    7 |         for(a=2,a<n,a++)
      |                ^
/in/foo.c:7:24: error: expected ';' before ')' token
    7 |         for(a=2,a<n,a++)
      |                        ^
      |                        ;
/in/foo.c:7:24: error: expected expression before ')' token
/in/foo.c:8:17: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    8 |         {for(i=1,i<=a,i++)
      |                 ^
/in/foo.c:8:26: error: expected ';' before ')' token
    8 |         {for(i=1,i<=a,i++)
      |                          ^
      |                          ;
/in/foo.c:8:26: error: expected expression before ')' token
/in/foo.c:9:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    9 |         {if (a%i==0);
      |          ^~
/in/foo.c:10:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   10 |          sum=sum+i;
      |          ^~~

信息

递交者
类型
自测
语言
C
递交时间
2025-12-28 16:34:37
评测时间
2025-12-28 16:34:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes