记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:6: error: 'i' undeclared (first use in this function)
  for(i=1;i<=n;i++);
      ^
/in/foo.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=n;i++);
  ^~~
/in/foo.c:8:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   scanf("%d %d\n",&ai,&bi);
   ^~~~~

信息

递交者
类型
递交
题目
A6-3 最大公约数专题:多个分数的加法
比赛
中北 计算机2021级专业修读指导(3)
语言
C
递交时间
2021-12-16 23:46:38
评测时间
2021-12-16 23:46:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes