记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:16:20: error: expected ‘;’ before ‘)’ token
   16 |         for(j=1,j++)
      |                    ^
      |                    ;
foo.c:16:20: error: expected expression before ‘)’ token
foo.c:21:9: error: ‘n’ undeclared (first use in this function)
   21 |         n=min
      |         ^
foo.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:21:14: error: expected ‘;’ before ‘m’
   21 |         n=min
      |              ^
      |              ;
   22 |         m=c*j+d*(min/b);
      |         ~     
foo.c:23:26: error: ‘m’ undeclared (first use in this function)
   23 |         for(i=1;i<=n&&i<=m;i++)
      |                          ^
foo.c:26:25: error: ‘max’ undeclared (first use in this function)
   26 |                         max=i;
      |                         ^~~

信息

递交者
类型
递交
题目
A6-2 最大公约数专题:分数的加法
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-20 04:17:32
评测时间
2024-08-20 04:17:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes