记录详情

Compile Error

foo.cc:5:17: error: 'x2' has not been declared
    5 | int gcd(int x1, x2) {
      |                 ^~
foo.cc: In function 'int gcd(int, int)':
foo.cc:6:11: error: 'x2' was not declared in this scope; did you mean 'x1'?
    6 |     while(x2 ==0)return x1;
      |           ^~
      |           x1
foo.cc:6:16: error: unable to find numeric literal operator 'operator""\U0000ff09return'
    6 |     while(x2 ==0)return x1;
      |                ^~~~~~~~~
foo.cc:6:16: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:6:25: error: expected ')' before 'x1'
    6 |     while(x2 ==0)return x1;
      |          ~              ^~~
      |                         )
foo.cc:6:26: warning: statement has no effect [-Wunused-value]
    6 |     while(x2 ==0)return x1;
      |                          ^~
foo.cc:7:16: error: 'x2' was not declared in this scope; did you mean 'x1'?
    7 |     return gcd(x2, x1 % x2);
      |                ^~
      |                x1
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1079 xf1-2最大公倍数与最小公因数
比赛
2022年迎新赛(第二场)
语言
C++
递交时间
2022-08-27 19:38:39
评测时间
2022-08-27 19:38:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes