记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:16: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    6 |         for(i=1,i<=4,i++)
      |                ^
foo.c:6:25: error: expected ';' before ')' token
    6 |         for(i=1,i<=4,i++)
      |                         ^
      |                         ;
foo.c:6:25: error: expected expression before ')' token
foo.c:7:24: warning: right-hand operand of comma expression has no effect [-Wunused-value]
    7 |                 for(j=1,j<=i,j++)
      |                        ^
foo.c:7:33: error: expected ';' before ')' token
    7 |                 for(j=1,j<=i,j++)
      |                                 ^
      |                                 ;
foo.c:7:33: error: expected expression before ')' token
foo.c:6:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    6 |         for(i=1,i<=4,i++)
      |         ^~~
foo.c:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    9 |                 printf("\n");
      |                 ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1018 输出三角形
语言
C
递交时间
2023-08-21 11:53:06
评测时间
2023-08-21 11:53:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes