记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=0,i<n;i++);
      |             ^
foo.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    8 |         for(i=0,i<n;i++);
      |                ^
foo.c:8:24: error: expected ';' before ')' token
    8 |         for(i=0,i<n;i++);
      |                        ^
      |                        ;
foo.c:10:13: warning: comparison between pointer and integer
   10 |         if(a<=60)
      |             ^~
foo.c:13:25: error: expected ';' before '}' token
   13 |                 return 0
      |                         ^
      |                         ;
   14 |         }
      |         ~                
foo.c:19:17: error: expected ';' before '}' token
   19 |         return 0
      |                 ^
      |                 ;
   20 | }
      | ~                
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1058 G7-1 统计不及格人数
语言
C
递交时间
2023-08-24 11:46:42
评测时间
2023-08-24 11:46:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes