记录详情

Compile Error

foo.c: In function 'main':
foo.c:10:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   10 |         for(int a=2;a<=n,a++)
      |                         ^
foo.c:10:29: error: expected ';' before ')' token
   10 |         for(int a=2;a<=n,a++)
      |                             ^
      |                             ;
foo.c:12:33: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   12 |                 for(int b=2;b<=n,b++)
      |                                 ^
foo.c:12:37: error: expected ';' before ')' token
   12 |                 for(int b=2;b<=n,b++)
      |                                     ^
      |                                     ;
foo.c:7:13: warning: unused variable 'b' [-Wunused-variable]
    7 |         int b;
      |             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
5-1 互质数
语言
C
递交时间
2023-10-01 13:17:24
评测时间
2023-10-01 13:17:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes