Compile Error

foo.c: In function 'main':
foo.c:16:9: warning: right-hand operand of comma expression has no effect [-Wunused-value]
   16 |  for(a=0,a<n,a++)
      |         ^
foo.c:16:17: error: expected ';' before ')' token
   16 |  for(a=0,a<n,a++)
      |                 ^
      |                 ;
foo.c:16:17: error: expected expression before ')' token
foo.c:17:16: error: 'num' undeclared (first use in this function)
   17 |  {printf("%d ",num[a]);
      |                ^~~
foo.c:17:16: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1163 冒泡排序
语言
C
递交时间
2023-10-10 15:26:47
评测时间
2023-10-10 15:26:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes