记录详情

Compile Error

foo.c: In function 'main':
foo.c:4:18: error: stray '\303' in program
    4 |  int b1,a1,b2,a2,×1,×2,j,k,i;
      |                  ^
foo.c:4:19: error: stray '\227' in program
    4 |  int b1,a1,b2,a2,×1,×2,j,k,i;
      |                   ^
foo.c:4:20: error: expected identifier or '(' before numeric constant
    4 |  int b1,a1,b2,a2,×1,×2,j,k,i;
      |                    ^
foo.c:4:22: error: stray '\303' in program
    4 |  int b1,a1,b2,a2,×1,×2,j,k,i;
      |                      ^
foo.c:4:23: error: stray '\227' in program
    4 |  int b1,a1,b2,a2,×1,×2,j,k,i;
      |                       ^
foo.c:6:2: error: 'x1' undeclared (first use in this function); did you mean 'a1'?
    6 |  x1=a1*a2;
      |  ^~
      |  a1
foo.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:2: error: 'x2' undeclared (first use in this function); did you mean 'a2'?
    7 |  x2=b1*a2+a1*b2;
      |  ^~
      |  a2
foo.c:8:2: error: 'j' undeclared (first use in this function)
    8 |  j=x1;
      |  ^
foo.c:9:2: error: 'k' undeclared (first use in this function)
    9 |  k=x2;
      |  ^
foo.c:12:3: error: 'i' undeclared (first use in this function)
   12 |   i=x2%x1;
      |   ^
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    5 |  scanf("%d%d\n%d%d" ,&b1,&a1,&b2,&a2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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