记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:5:23: error: expected ‘;’ before ‘)’ token
    5 |         for (i = 1;i++);
      |                       ^
      |                       ;
foo.c:5:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    5 |         for (i = 1;i++);
      |         ^~~
foo.c:6:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
    6 |         {
      |         ^
foo.c:4:17: warning: unused variable ‘sum’ [-Wunused-variable]
    4 |         int i,j,sum=0;
      |                 ^~~

信息

递交者
类型
自测
题目
A3-1 素数专题:因子的和
语言
C
递交时间
2024-08-19 18:37:23
评测时间
2024-08-19 18:37:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes